Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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` |