dv-team/json

A wrapper-class for json_encode and json_decode to automatically set some constants like JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE | JSON_THROW_ON_ERROR

1.0.1 2020-07-25 13:16 UTC

This package is not auto-updated.

Last update: 2024-11-09 05:36:37 UTC


README

A wrapper-class for json_encode and json_decode to automatically set some constants like JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE | JSON_THROW_ON_ERROR

use DvTeam\JSON\JSON;

JSON::stringify(['a' => 123], false); // {"a":123}

JSON::parse('{"a":123}'); // ['a' => 123]