webchemistry / simple-json
Installs: 2 120
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
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-12-08 22:48:57 UTC
README
JSON which is not so strict and very similar to JS object syntax.
{ 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]
Usage
WebChemistry\SimpleJson\SimpleJsonParser::parse($string);