Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sneezry/stackorientedobjectnotation
SOON (Stack Oriented Object Notation) is a data-interchange format. It is easy for low-level programming languages to parse, and easy to convert from JSON.
https://github.com/sneezry/stackorientedobjectnotation
Last synced: 6 days ago
JSON representation
SOON (Stack Oriented Object Notation) is a data-interchange format. It is easy for low-level programming languages to parse, and easy to convert from JSON.
- Host: GitHub
- URL: https://github.com/sneezry/stackorientedobjectnotation
- Owner: Sneezry
- License: mit
- Created: 2017-12-13T17:24:53.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-12-14T16:05:17.000Z (about 7 years ago)
- Last Synced: 2024-11-08T15:50:07.080Z (about 2 months ago)
- Language: TypeScript
- Homepage: https://output.jsbin.com/hilahod
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Stack Oriented Object Notation
SOON (Stack Oriented Object Notation) is a data-interchange format. It is easy for low-level programming languages to parse, and easy to convert from JSON.
## Online Playground
## Structure
Similar with JSON, SOON is built on two commands:
* A collection of name/value pairs (Object).
* An ordered list of values (Array).### Object
```
value1 key1 value2 key2 ... value key O
```The O command stands for Object.
### Array
```
value1 value2 ... value A
```The A command stands for Array.
### String, Number, Boolean and Null
Same as JSON, single string, number, boolean and null are valid SOON.
```
"Hello World"
123
True
False
Null
```## Compare with JSON
| JSON | SOON |
|:----:|:---:|
| `"Hello World"` | `"Hello World"` |
| `123` | `123` |
| `true` | `True` |
| `false` | `False` |
| `null` | `Null` |
| `["a", "b", 123]` | `123 "b" "a" A3` |
| `{"key1": "value1", "key2": "value2"}` | `"value1" "key1" "value2" "key2" O2` |
| `{"key": ["value1", "value2"]}` | `"value2" "value1" A2 "key" O1` |
| `[{"key": "value1"}, {"key": "value2"}]` | `"value2" "key" O1 "value1" "key" O1 A2` |