https://github.com/olistic/jotason
🍬 Lightweight data-interchange language that adds syntactic sugar to JSON
https://github.com/olistic/jotason
Last synced: 2 months ago
JSON representation
🍬 Lightweight data-interchange language that adds syntactic sugar to JSON
- Host: GitHub
- URL: https://github.com/olistic/jotason
- Owner: olistic
- License: mit
- Created: 2014-11-06T03:16:36.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-04-21T03:28:14.000Z (about 11 years ago)
- Last Synced: 2025-01-17T15:16:45.902Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 211 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Jotason
A lightweight language that adds syntactic sugar to JSON.
## What is Jotason?
Why would we write this JSON:
```
{
"_id": 1237,
"name": "Walter Merriam",
"birthdate": "08/23/1987",
"allergic": false,
"celiac": false,
"diabetic": false,
"hypertensive": false,
"diseases": ["Urinary Tract Infection"],
"medications": [
{
"name": "Amoxicilin",
"dosage": "500mg/8h"
},
{
"name": "Aspirin",
"dosage": "3g/1d"
},
{
"name": "Ibuprofen",
"dosage": "200mg/6h"
}
]
}
```
when we can write this Jotason:
```
{
_id: 1237,
name: "Walter Merriam",
birthdate: "08/23/1987",
allergic, celiac, diabetic, hypertensive: false,
diseases: ["Urinary Tract Infection"],
medications": [
(name, dosage):
"Amoxicillin", "500mg/8h",
"Aspirin", "3g/1d",
"Ibuprofen", "200mg/6h"
]
}
```
## Credits
Credit to [@LeonardoVal](https://github.com/LeonardoVal) for the original JS-Data idea.