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

Installs: 1 032

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/dv-team/json

1.0.1 2020-07-25 13:16 UTC

This package is not auto-updated.

Last update: 2025-09-27 09:34:50 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]