Measures Concepts
GitHub icon

Jsonnet

Jsonnet - Data notation

< >

Jsonnet is a data notation created in 2014 by Dave Cunningham.

Source code:
git clone https://github.com/google/jsonnet
#1207on PLDB 10Years Old 1kRepos

Try now: Web


Example from the web:
// A function that returns an object. local Person(name='Alice') = { name: name, welcome: 'Hello ' + name + '!', }; { person1: Person(), person2: Person('Bob'), }

Language features

Feature Supported Token Example
Comments ✓
// A comment
MultiLine Comments ✓ /* */
/* A comment
*/
Line Comments ✓ //
// A comment
Lists ✓
[1, 2, 3]
Maps ✓
{"name": "Mary"}
Strings ✓
"hello world"
Integers ✓
80766866
Floats ✓
2.3
Booleans ✓
false
Semantic Indentation X
Case Insensitive Identifiers X
Multiline Strings X
File Imports X
Ternary operators X
Conditionals X
Macros X
Disk Output X

View source

- Build the next great programming language · Search · Add Language · Features · Creators · Resources · About · Blog · Acknowledgements · Queries · Stats · Sponsor · Day 605 · feedback@pldb.io · Logout