ehough/jameson

This package is abandoned and no longer maintained. No replacement package was suggested.

JSON encoder/decoder compatible with PHP 5.1 and above.

v1.0.2 2015-11-30 07:31 UTC

This package is not auto-updated.

Last update: 2020-03-06 15:38:03 UTC


README

Build Status Project Status: Unsupported - The project has reached a stable, usable state but the author(s) have ceased all work on it. A new maintainer may be desired. Latest Stable Version License

This library is no longer maintained. JSON encoder/decoder compatible with PHP 5.1.3 and above. This library will use PHP's builtin json_encode() and json_decode() when available.

$input   = array('a' => 1, 'b' => 2, 'c' => 3);
$encoder = new ehough_jameson_impl_FastEncoder();  //implements ehough_jameson_api_Encoder
$decoder = new ehough_jameson_impl_FastDecoder();  //implements ehough_jameson_api_Decoder
$asJson  = $encoder->encode($input);               //{"a":1,"b":2,"c":3}
$result  = $decoder->decode($asJson);              //array('a' => 1, 'b' => 2, 'c' => 3);