Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
lib
 
 
src
 
 
 
 
 
 
 
 
 
 

README.md

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

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.