Skip to content

WebChemistry/simple-json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple json parser

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);

About

JSON which is not so strict and very similar to JS object syntax.

Resources

Stars

Watchers

Forks

Packages

No packages published