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
Requires
- php: >=5.1.0
Requires (Dev)
- ehough/pulsar: ^2.5
This package is not auto-updated.
Last update: 2020-03-06 15:38:03 UTC
README
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);