File modules/cms/generator/dsl/DslJson.class.php

Last commit: Mon Jun 27 00:40:42 2022 +0200	Jan Dankert	New: Marker interface 'Scriptable', Proxy class for MQTT, help() method in Scripts.
1 <?php 2 3 namespace cms\generator\dsl; 4 5 use dsl\context\BaseScriptableObject; 6 use util\json\JSON; 7 8 class DslJson extends BaseScriptableObject 9 { 10 11 public function parse( $text ) 12 { 13 return JSON::decode( $text ); 14 } 15 16 public function stringify( $text ) 17 { 18 return JSON::encode( $text ); 19 } 20 }
Download modules/cms/generator/dsl/DslJson.class.php
History Mon, 27 Jun 2022 00:40:42 +0200 Jan Dankert New: Marker interface 'Scriptable', Proxy class for MQTT, help() method in Scripts. Tue, 31 May 2022 00:32:27 +0200 Jan Dankert New: More context objects for the DSL