weew / json-encoder
JSON encoding and decoding library.
v1.1.0
2017-05-24 14:52 UTC
Requires
- weew/contracts: ^1.1
- weew/helpers-string: ^1.1
Requires (Dev)
- phpunit/phpunit: ^4.7
- satooshi/php-coveralls: ^0.6.1
This package is not auto-updated.
Last update: 2024-12-21 21:14:05 UTC
README
Table of contents
Installation
composer require weew/json-encoder
Introduction
This is a very simple wrapper around the json_encode
and json_decode
functions that additionally supports various data types and provides catchable encoding & decoding exceptions in case of a JSON error.
Usage
$encoder = new JsonEncoder(); $encoder->encode(/** data **/); $encoder->decode(/** json **/);