death_satan / json-tool
Json Fast Tool Library
Fund package maintenance!
Open Collective
hyperf.wiki/#/zh-cn/donate
Requires
- php: >=7.4
- ext-json: *
Requires (Dev)
- friendsofphp/php-cs-fixer: dev-master
- phpstan/phpstan: 1.11.x-dev
- phpunit/phpunit: 9.6.x-dev
- symfony/var-dumper: 5.4.x-dev
This package is auto-updated.
Last update: 2024-10-30 02:22:35 UTC
README
方法
/** * @method bool isJson(string $json) static * @method object stringToObject(string $json,int $depth = 512,int $options = 0) static * @method mixed decode(string $json,bool $assoc = true,int $depth = 512,int $options = 0) static * @method string encode($value,int $options = JSON_UNESCAPED_UNICODE,int $depth = 512) static * @method string objectToJson(object $object,int $options = JSON_UNESCAPED_UNICODE,int $depth = 512) static * @method string arrayToJson(array $data,int $options = JSON_UNESCAPED_UNICODE,int $depth = 512) static */