webchemistry / simple-json
该包的最新版本(v1.0.0)没有提供许可信息。
v1.0.0
2022-07-08 17:32 UTC
Requires
- php: >= 8.0
- doctrine/lexer: ^1.2
Requires (Dev)
- nette/tester: ^2.4
- phpstan/phpstan: ^1.8
This package is auto-updated.
Last update: 2024-09-08 22:20:48 UTC
README
不那么严格且与JS对象语法非常相似的JSON。
{ key: value, }
= ['key' => 'value']
{ 'key': "value", }
= ['key' => 'value']
{ { foo }, { bar } }
= [[ 'foo' ], [ 'bar' ]]
{ foo, 15: bar, foo }
= [0 => 'foo', 15 => 'bar', 16 => 'foo']
{ 15 }
= 15
{ 42.42 }
= 42.42
[ 1, 2 ]
= [1, 2]
使用方法
WebChemistry\SimpleJson\SimpleJsonParser::parse($string);