Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/webchemistry/simple-json
JSON which is not so strict and very similar to JS object syntax.
https://github.com/webchemistry/simple-json
Last synced: about 1 month ago
JSON representation
JSON which is not so strict and very similar to JS object syntax.
- Host: GitHub
- URL: https://github.com/webchemistry/simple-json
- Owner: WebChemistry
- Created: 2022-07-08T17:31:54.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-07-08T17:33:34.000Z (over 2 years ago)
- Last Synced: 2024-11-16T02:21:35.476Z (about 2 months ago)
- Language: PHP
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## 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
```php
WebChemistry\SimpleJson\SimpleJsonParser::parse($string);
```