dev-master
9999999-dev http://sourcecode.steein.ruThis library is an object-oriented interface that works with data in JSON format
MIT
The Requires
This library is an object-oriented interface that works with data in JSON format
This library is an object-oriented interface that works with data in JSON format, (*1)
use SteeinJSON\JSON; $myJson = " { "steein": { "item":"value" } } "; $object = new JSON($myJson);
use SteeinJSON\JSON; $object = new JSON(); $object->text->item = 'value'; $object->text->item->one = 'value2'; //By default, simply output through "echo" echo $object; //At the request is allowed to maintain in a JSON file $file = __DIR__.'/json/item.json'; $object->save($file);
If you would like to work with an existing object, rather than parsing a string, pass this object as the third constructor argument:, (*2)
use SteeinJSON\JSON; $object = new JSON(null, null, $customJSON); ///Validating Against a Schema $object->check($customSchema, [$extraSchemaURI => $extraSchemaData]);
This library is an object-oriented interface that works with data in JSON format
MIT