PHP library to encode and decode JSON

v1.0 2015-09-12 01:26 UTC

This package is not auto-updated.

Last update: 2024-09-28 17:54:44 UTC


README

API

To use the library, see the example below:

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

use sevensoft\json\Json;

echo Json::encode("foo") . PHP_EOL;
echo Json::encode(array('foo' => 'bar')) . PHP_EOL;
echo var_export(Json::decode('{"foo":"bar"}')) . PHP_EOL;

License

Licensed under the Apache License, Version 2.0;

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