Skip to content

Instantly share code, notes, and snippets.

@RobertFischer
Created November 4, 2021 18:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RobertFischer/002ace7d3519974ece41b945a3aed45c to your computer and use it in GitHub Desktop.
Save RobertFischer/002ace7d3519974ece41b945a3aed45c to your computer and use it in GitHub Desktop.
JSON++ Sample
{
alphanumeric_field_needs_quotes: false,
_leading_undderscores_ok: true,
trailing_underscores_ok_: true,
carriage_return_acts_like_comma: true
"vanilla JSON keys also supported": true
"a list with null element in at index 1": [0,,2,3,4,5]
"a list with null element in at index 0": [,1,2,3,4,5]
"a list with null final element": [0,1,2,3,4,]
"empty list is interpreted as the empty list, not [null]": []
// You can also add comments
/* Multiline
comments
/* can be nested */
*/
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment