https://github.com/av/yson
YSON format description
https://github.com/av/yson
Last synced: 10 months ago
JSON representation
YSON format description
- Host: GitHub
- URL: https://github.com/av/yson
- Owner: av
- Created: 2015-09-24T14:11:10.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2024-10-08T11:32:47.000Z (over 1 year ago)
- Last Synced: 2025-02-28T21:37:04.417Z (11 months ago)
- Language: JavaScript
- Size: 53.7 KB
- Stars: 10
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README

**YSON** (YSON - Simple Object Notation) - is a really lightweight data interchange format.
It is easy for humans to read and write. It is easy for machines to parse and generate. It is based on a JSON, which is completely language independent, but uses conventions that are familiar to programmers of the C-family of languages.
YSON is built on simple rule - to reduce the redundand syntax elements. It supports all possible data structures are supported by JSON itself. Inspired by awesome YAML and JADE syntaxes.
## Example
*YSON - __316__ Symbols*
```
name Luke Skywalker
height 1.72
hair_color Blond
birth_year 19 BBY
gender Male
homeworld http://swapi.co/api/planets/1/
films
http://swapi.co/api/films/1/,
http://swapi.co/api/films/2/,
http://swapi.co/api/films/3/,
species
http://swapi.co/api/species/1/,
father
name Darth Vader
height 2.02
hair_color
```
*JSON - __437__ Symbols*
```JSON
{
"name": "Luke Skywalker",
"height": 1.72,
"hair_color": "Blond",
"birth_year": "19 BBY",
"gender": "Male",
"homeworld": "http://swapi.co/api/planets/1/",
"films": [
"http://swapi.co/api/films/1/",
"http://swapi.co/api/films/2/",
"http://swapi.co/api/films/3/"
],
"species": [
"http://swapi.co/api/species/1/"
],
"father": {
"name": "Darth Vader",
"height": 2.02,
"hair_color": null
}
}
```
## Structures




