Skip to content

Instantly share code, notes, and snippets.

@lega911
Last active July 8, 2018 12:28
Show Gist options
  • Save lega911/ccaced2344ffd4cd46028466577ca953 to your computer and use it in GitHub Desktop.
Save lega911/ccaced2344ffd4cd46028466577ca953 to your computer and use it in GitHub Desktop.
{
# comments are useful
# specify rate in requests/second
"rate": 1000
// maybe you prefer js style comments
/* or if you feel old fashioned */
# key names do not need to be placed in quotes
key: "value"
# you don't need quotes for strings
text: look ma, no quotes!
# note that for quoteless strings everything up
# to the next line is part of the string!
# commas are optional
commas: {
one: 1
two: 2
}
# trailing commas are allowed
trailing: {
one: 1,
two: 2,
}
# multiline string
haiku:
'''
JSON I love you.
But you strangle my expression.
This is so much better.
'''
# array
favNumbers: [ 1, 2, 3, 6, 42 ]
}
{
// comments are useful
// specify rate in requests/second
"rate": 1000,
// maybe you prefer js style comments
// or if you feel old fashioned
// key names do not need to be placed in quotes
key: "value",
// you don't need quotes for strings
text: 'look ma, no quotes!',
// note that for quoteless strings everything up
// to the next line is part of the string!
// commas are optional
commas: {
one: 1,
two: 2
},
// trailing commas are allowed
trailing: {
one: 1,
two: 2,
},
// multiline string
haiku:
'''
JSON I love you.\
But you strangle my expression.\
This is so much better.\
'''
// array
favNumbers: [ 1, 2, 3, 6, 42 ]
}
# comments are useful
# specify rate in requests/second
rate: 1000
# maybe you prefer js style comments
# or if you feel old fashioned
# key names do not need to be placed in quotes
key: value
# you don't need quotes for strings
text: 'look ma, no quotes!'
# note that for quoteless strings everything up
# to the next line is part of the string!
# commas are optional
commas:
one: 1
two: 2
# trailing commas are allowed
trailing:
one: 1
two: 2
# multiline string
haiku: |-
JSON I love you.
But you strangle my expression.
This is so much better.
# array
favNumbers:
- 1
- 2
- 3
- 6
- 42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment