ehough / jameson
JSON encoder/decoder compatible with PHP 5.1 and above.
Installs: 99
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/ehough/jameson
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);