PHP code example of death_satan / json-tool

1. Go to this page and download the library: Download death_satan/json-tool library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

death_satan / json-tool example snippets


/**
 * @method bool isJson(string $json) static
 * @method object stringToObject(string $json,int $depth = 512,int $options = 0) static
 * @method mixed decode(string $json,bool $assoc = true,int $depth = 512,int $options = 0) static
 * @method string encode($value,int $options = JSON_UNESCAPED_UNICODE,int $depth = 512) static
 * @method string objectToJson(object $object,int $options = JSON_UNESCAPED_UNICODE,int $depth = 512) static
 * @method string arrayToJson(array $data,int $options = JSON_UNESCAPED_UNICODE,int $depth = 512) static
 */