Last active
July 22, 2018 04:40
-
-
Save binderclip/45ca89f76f1fa4b8d5b9fbebf4cc3071 to your computer and use it in GitHub Desktop.
json and yaml syntax
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
{ | |
"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" | |
} |
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
--- | |
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Convert JSON to YAML
Convert YAML to JSON
YAML Multiline Strings