Skip to content

What is Justin syntax? #7058

Answered by dckc
dckc asked this question in Q&A
Discussion options

You must be logged in to vote

Justin is one of the jessica grammars; it's a "pure expression grammar", between JSON and Jessie:

// Justin is the safe JavaScript expression language, a potentially
// pure terminating superset of JSON and subset of Jessie, that relieves
// many of the pain points of using JSON as a data format:
//   * unquoted indentifier property names.
//   * comments.
//   * multi-line strings (via template literals).
//   * undefined.
//   * includes all floating point values: NaN, Infinity, -Infinity
//   * will include BigInt once available.

agoric follow uses decodeToJustin from @endo/marshal to decode marshalled data to Justin.

test-marshal-justin.js is another form of specification / document…

Replies: 1 comment

Comment options

dckc
Feb 23, 2023
Collaborator Author

You must be logged in to vote
0 replies
Answer selected by dckc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant