php.json:一个用于简化JSON linting和验证的库

时间:2021-02-02 17:54:55
【文件属性】:
文件名称:php.json:一个用于简化JSON linting和验证的库
文件大小:18KB
文件格式:ZIP
更新时间:2021-02-02 17:54:55
json parsing linting ParsingPHP JSON格式 用于编码,解码,整理和验证JSON数据的库。 该库为PHP的json扩展, justinrainbow/json-schema和seld/jsonlint提供的现有功能提供了简化的接口。 目的是使它易于使用,同时又不会错过错误。 用法 <?php use KHerGe \ JSON \ JSON ; $ json = new JSON (); // Decode JSON values. $ decoded = $ json -> decode ( '{"test":123}' ); // Decode JSON values in files. $ decoded = $ json -> decodeFile ( '/path/to/file.json' ); // Encode native values. $ encoded = $ json -> encode ([ 'test' => 123 ]); // Encode native values into files. $ json -> encodeFile ([ 'test' => 123 ], '/pa
【文件预览】:
php.json-master
----composer.json(1KB)
----.travis.yml(394B)
----tests()
--------KHerGe()
----LICENSE(2KB)
----src()
--------KHerGe()
----.gitignore(108B)
----phpunit.xml.dist(945B)
----README.md(2KB)

网友评论