webchemistry/simple-json

There is no license information available for the latest version (v1.0.0) of this package.

v1.0.0 2022-07-08 17:32 UTC

This package is auto-updated.

Last update: 2024-04-08 21:31:43 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);