weew / json-encoder
JSON encoding and decoding library.
Installs: 536
Dependents: 2
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/weew/json-encoder
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: 2025-09-28 01:17:30 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 **/);