Skip to content

olistic/jotason

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 for the original JS-Data idea.

About

🍬 Lightweight data-interchange language that adds syntactic sugar to JSON

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published