Jsonnet is a data notation created in 2014 by Dave Cunningham.
#206on PLDB | 10Years Old | 1kRepos |
git clone https://github.com/google/jsonnet
Jsonnet - The data templating language
// A function that returns an object.
local Person(name='Alice') = {
name: name,
welcome: 'Hello ' + name + '!',
};
{
person1: Person(),
person2: Person('Bob'),
}
Feature | Supported | Example | Token |
---|---|---|---|
Comments | ✓ | // A comment | |
MultiLine Comments | ✓ | /* A comment */ | /* */ |
Line Comments | ✓ | // A comment | // |
Semantic Indentation | X |