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