Last active
July 8, 2018 12:28
-
-
Save lega911/ccaced2344ffd4cd46028466577ca953 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
# 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 ] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// 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 ] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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