Parsing and producing JSON

json string example

NAME
Json string example
CATEGORY
Templates
SIZE
243.73 MB in 143 files
ADDED
Uploaded on 23
SWARM
1661 seeders & 1814 peers

Description

JSON is not native PHP format or even native JavaScript format, everyone who wants to use JSON wisely should carefuly read official documentation. You can now clearly identify the different constructs of your JSON (objects, arrays and members). The created JSON tree can be navigated by collapsing the individual nodes one at a time if desired. JSON string or file with the chosen indentation level, creating a tree object with color highlights. BOM (byte order mark) before decoding it with json_decode. Otherwise json_decode will fail creating an associative array. JsonSerializable interface be aware that throwing any exception from within the jsonSerialize() method will be suppressed and an exception saying "Failed calling YourClass::jsonSerialize()" will be thrown instead.