Skip to content

Instantly share code, notes, and snippets.

@binderclip
Last active July 22, 2018 04:40
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 binderclip/45ca89f76f1fa4b8d5b9fbebf4cc3071 to your computer and use it in GitHub Desktop.
Save binderclip/45ca89f76f1fa4b8d5b9fbebf4cc3071 to your computer and use it in GitHub Desktop.
json and yaml syntax
{
"d_str": "hello",
"d_str2": "hello hello /.':",
"d_empty_str": "",
"d_int": 123,
"d_float": 123.456,
"d_null": null,
"d_array_of_str": ["a", "b"],
"d_empty_array": [],
"d_array_of_array": [["aa", "ab"], ["ba", "bb"]],
"d_dict": {"a": "b"},
"d_array_of_dict": [{"a1": "aa1", "a2": "aa2"}, {"b": "bb"}],
"d_bool": true,
"object": {
"key": "value",
"array": [
{
"null_value": null
},
{
"boolean": true
},
{
"integer": 1
}
]
},
"paragraph": "Blank lines denote\nparagraph breaks\n",
"content": "Or we\ncan auto\nconvert line breaks\nto save space"
}
---
d_str: hello
d_str2: 'hello hello /.'':'
d_empty_str: ''
d_int: 123
d_float: 123.456
d_null:
d_array_of_str:
- a
- b
d_empty_array: []
d_array_of_array:
- - aa
- ab
- - ba
- bb
d_dict:
a: b
d_array_of_dict:
- a1: aa1
a2: aa2
- b: bb
d_bool: true
object:
key: value
array:
- null_value:
- boolean: true
- integer: 1
paragraph: |
Blank lines denote
paragraph breaks
content: |-
Or we
can auto
convert line breaks
to save space
@binderclip
Copy link
Author

binderclip commented Dec 20, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment