PHP library to encode and decode JSON

v1.0 2016-07-22 09:16 UTC

This package is not auto-updated.

Last update: 2024-10-02 19:29:51 UTC


README

API

To use the library, see the example below:

 <?php
 require_once 'vendor/autoload.php';

 $data = [
     'a' => 'test',
     'b' => 'test'
 ];
 $jsondata = \phptestsoft\Json::encode($data);
 print_r($jsondata);

 $data2 = \phptestsoft\Json::decode($jsondata);
 print_r($data2);

License

Licensed under the Apache License, Version 2.0;

http://www.apache.org/licenses/LICENSE-2.0