ID | Input / Config | ---
v: v0.1
indentation: { spaces: 2 }
trailing-spaces: fix
scalar-style: { default: plain }
|
---
v: v0.1
indentation: { spaces: 2 }
trailing-spaces: fix
scalar-style: { default: single }
|
---
v: v0.1
indentation: { spaces: 2 }
trailing-spaces: fix
scalar-style: { default: double }
|
---|
229Q | -
name: Mark McGwire
hr: 65
avg: 0.278
-
name: Sammy Sosa
hr: 63
avg: 0.288
|
-
name: Mark McGwire
hr: 65
avg: 0.278
-
name: Sammy Sosa
hr: 63
avg: 0.288
|
-
'name': 'Mark McGwire'
'hr': 65
'avg': 0.278
-
'name': 'Sammy Sosa'
'hr': 63
'avg': 0.288
|
-
"name": "Mark McGwire"
"hr": 65
"avg": 0.278
-
"name": "Sammy Sosa"
"hr": 63
"avg": 0.288
|
26DV | "top1" :
"key1" : &alias1 scalar1
'top2' :
'key2' : &alias2 scalar2
top3: &node3
*alias1 : scalar3
top4:
*alias2 : scalar4
top5 :
scalar5
top6:
&anchor6 'key6' : scalar6
|
top1 :
key1 : &alias1 scalar1
top2 :
key2 : &alias2 scalar2
top3: &node3
*alias1 : scalar3
top4:
*alias2 : scalar4
top5 :
scalar5
top6:
&anchor6 key6 : scalar6
|
'top1' :
'key1' : &alias1 'scalar1'
'top2' :
'key2' : &alias2 'scalar2'
'top3': &node3
*alias1 : 'scalar3'
'top4':
*alias2 : 'scalar4'
'top5' :
'scalar5'
'top6':
&anchor6 'key6' : 'scalar6'
|
"top1" :
"key1" : &alias1 "scalar1"
"top2" :
"key2" : &alias2 "scalar2"
"top3": &node3
*alias1 : "scalar3"
"top4":
*alias2 : "scalar4"
"top5" :
"scalar5"
"top6":
&anchor6 "key6" : "scalar6"
|
27NA | %YAML 1.2
--- text
|
%YAML 1.2
--- text
|
%YAML 1.2
--- 'text'
|
%YAML 1.2
--- "text"
|
2AUY | - !!str a
- b
- !!int 42
- d
|
- !!str a
- b
- !!int 42
- d
|
- !!str a
- 'b'
- !!int 42
- 'd'
|
- !!str a
- "b"
- !!int 42
- "d"
|
2EBW | a!"#$%&'()*+,-./09:;<=>?@AZ[\]^_`az{|}~: safe
?foo: safe question mark
:foo: safe colon
-foo: safe dash
this is#not: a comment
|
a!"#$%&'()*+,-./09:;<=>?@AZ[\]^_`az{|}~: safe
?foo: safe question mark
:foo: safe colon
-foo: safe dash
this is#not: a comment
|
'a!"#$%&''()*+,-./09:;<=>?@AZ[\]^_`az{|}~': 'safe'
'?foo': 'safe question mark'
':foo': 'safe colon'
'-foo': 'safe dash'
'this is#not': 'a comment'
|
"a!\"#$%&'()*+,-./09:;<=>?@AZ[\\]^_`az{|}~": "safe"
"?foo": "safe question mark"
":foo": "safe colon"
"-foo": "safe dash"
"this is#not": "a comment"
|
2XXW | # Sets are represented as a
# Mapping where each key is
# associated with a null value
--- !!set
? Mark McGwire
? Sammy Sosa
? Ken Griff
|
# Sets are represented as a
# Mapping where each key is
# associated with a null value
--- !!set
? Mark McGwire
? Sammy Sosa
? Ken Griff
|
# Sets are represented as a
# Mapping where each key is
# associated with a null value
--- !!set
? 'Mark McGwire'
? 'Sammy Sosa'
? 'Ken Griff'
|
# Sets are represented as a
# Mapping where each key is
# associated with a null value
--- !!set
? "Mark McGwire"
? "Sammy Sosa"
? "Ken Griff"
|
33X3 | ---
- !!int 1
- !!int -2
- !!int 33
|
---
- !!int 1
- !!int -2
- !!int 33
|
---
- !!int 1
- !!int -2
- !!int 33
|
---
- !!int 1
- !!int -2
- !!int 33
|
35KP | --- !!map
? a
: b
--- !!seq
- !!str c
--- !!str
d
e
|
--- !!map
? a
: b
--- !!seq
- !!str c
--- !!str
d
e
|
--- !!map
? 'a'
: 'b'
--- !!seq
- !!str c
--- !!str
d
e
|
--- !!map
? "a"
: "b"
--- !!seq
- !!str c
--- !!str
d
e
|
36F6 | ---
plain: a
b
c
|
---
plain: a
b
c
|
---
'plain': a
b
c
|
---
"plain": a
b
c
|
3ALJ | - - s1_i1
- s1_i2
- s2
|
- - s1_i1
- s1_i2
- s2
|
- - 's1_i1'
- 's1_i2'
- 's2'
|
- - "s1_i1"
- "s1_i2"
- "s2"
|
3GZX | First occurrence: &anchor Foo
Second occurrence: *anchor
Override anchor: &anchor Bar
Reuse anchor: *anchor
|
First occurrence: &anchor Foo
Second occurrence: *anchor
Override anchor: &anchor Bar
Reuse anchor: *anchor
|
'First occurrence': &anchor 'Foo'
'Second occurrence': *anchor
'Override anchor': &anchor 'Bar'
'Reuse anchor': *anchor
|
"First occurrence": &anchor "Foo"
"Second occurrence": *anchor
"Override anchor": &anchor "Bar"
"Reuse anchor": *anchor
|
3MYT | ---
k:#foo
&a !t s
|
---
k:#foo
&a !t s
|
---
k:#foo
&a !t s
|
---
k:#foo
&a !t s
|
3R3P | &sequence
- a
|
&sequence
- a
|
&sequence
- 'a'
|
&sequence
- "a"
|
3UYS | escaped slash: "a\/b"
|
escaped slash: a/b
|
'escaped slash': 'a/b'
|
"escaped slash": "a\/b"
|
4CQQ | plain:
This unquoted scalar
spans many lines.
quoted: "So does this
quoted scalar.\n"
|
plain:
This unquoted scalar
spans many lines.
quoted: "So does this
quoted scalar.\n"
|
'plain':
This unquoted scalar
spans many lines.
'quoted': "So does this
quoted scalar.\n"
|
"plain":
This unquoted scalar
spans many lines.
"quoted": "So does this
quoted scalar.\n"
|
4FJ6 | ---
[
[ a, [ [[b,c]]: d, e]]: 23
]
|
---
[
[ a, [ [[b,c]]: d, e]]: 23
]
|
---
[
[ a, [ [[b,c]]: d, e]]: 23
]
|
---
[
[ a, [ [[b,c]]: d, e]]: 23
]
|
4GC6 | 'here''s to "quotes"'
|
here's to "quotes"
|
'here''s to "quotes"'
|
"here's to \"quotes\""
|
4UYU | "foo: bar\": baz"
|
"foo: bar\": baz"
|
'foo: bar": baz'
|
"foo: bar\": baz"
|
4V8U | ---
plain\value\with\backslashes
|
---
plain\value\with\backslashes
|
---
'plain\value\with\backslashes'
|
---
"plain\\value\\with\\backslashes"
|
4ZYM | plain: text
lines
quoted: "text
lines"
block: |
text
lines
|
plain: text
lines
quoted: "text
lines"
block: |
text
lines
|
'plain': text
lines
'quoted': "text
lines"
'block': |
text
lines
|
"plain": text
lines
"quoted": "text
lines"
"block": |
text
lines
|
52DL | ---
! a
|
---
! a
|
---
! a
|
---
! a
|
54T7 | {foo: you, bar: far}
|
{foo: you, bar: far}
|
{'foo': 'you', 'bar': 'far'}
|
{"foo": "you", "bar": "far"}
|
565N | canonical: !!binary "\
R0lGODlhDAAMAIQAAP//9/X17unp5WZmZgAAAOfn515eXvPz7Y6OjuDg4J+fn5\
OTk6enp56enmlpaWNjY6Ojo4SEhP/++f/++f/++f/++f/++f/++f/++f/++f/+\
+f/++f/++f/++f/++f/++SH+Dk1hZGUgd2l0aCBHSU1QACwAAAAADAAMAAAFLC\
AgjoEwnuNAFOhpEMTRiggcz4BNJHrv/zCFcLiwMWYNG84BwwEeECcgggoBADs="
generic: !!binary |
R0lGODlhDAAMAIQAAP//9/X17unp5WZmZgAAAOfn515eXvPz7Y6OjuDg4J+fn5
OTk6enp56enmlpaWNjY6Ojo4SEhP/++f/++f/++f/++f/++f/++f/++f/++f/+
+f/++f/++f/++f/++f/++SH+Dk1hZGUgd2l0aCBHSU1QACwAAAAADAAMAAAFLC
AgjoEwnuNAFOhpEMTRiggcz4BNJHrv/zCFcLiwMWYNG84BwwEeECcgggoBADs=
description:
The binary value above is a tiny arrow encoded as a gif image.
|
canonical: !!binary "\
R0lGODlhDAAMAIQAAP//9/X17unp5WZmZgAAAOfn515eXvPz7Y6OjuDg4J+fn5\
OTk6enp56enmlpaWNjY6Ojo4SEhP/++f/++f/++f/++f/++f/++f/++f/++f/+\
+f/++f/++f/++f/++f/++SH+Dk1hZGUgd2l0aCBHSU1QACwAAAAADAAMAAAFLC\
AgjoEwnuNAFOhpEMTRiggcz4BNJHrv/zCFcLiwMWYNG84BwwEeECcgggoBADs="
generic: !!binary |
R0lGODlhDAAMAIQAAP//9/X17unp5WZmZgAAAOfn515eXvPz7Y6OjuDg4J+fn5
OTk6enp56enmlpaWNjY6Ojo4SEhP/++f/++f/++f/++f/++f/++f/++f/++f/+
+f/++f/++f/++f/++f/++SH+Dk1hZGUgd2l0aCBHSU1QACwAAAAADAAMAAAFLC
AgjoEwnuNAFOhpEMTRiggcz4BNJHrv/zCFcLiwMWYNG84BwwEeECcgggoBADs=
description:
The binary value above is a tiny arrow encoded as a gif image.
|
'canonical': !!binary "\
R0lGODlhDAAMAIQAAP//9/X17unp5WZmZgAAAOfn515eXvPz7Y6OjuDg4J+fn5\
OTk6enp56enmlpaWNjY6Ojo4SEhP/++f/++f/++f/++f/++f/++f/++f/++f/+\
+f/++f/++f/++f/++f/++SH+Dk1hZGUgd2l0aCBHSU1QACwAAAAADAAMAAAFLC\
AgjoEwnuNAFOhpEMTRiggcz4BNJHrv/zCFcLiwMWYNG84BwwEeECcgggoBADs="
'generic': !!binary |
R0lGODlhDAAMAIQAAP//9/X17unp5WZmZgAAAOfn515eXvPz7Y6OjuDg4J+fn5
OTk6enp56enmlpaWNjY6Ojo4SEhP/++f/++f/++f/++f/++f/++f/++f/++f/+
+f/++f/++f/++f/++f/++SH+Dk1hZGUgd2l0aCBHSU1QACwAAAAADAAMAAAFLC
AgjoEwnuNAFOhpEMTRiggcz4BNJHrv/zCFcLiwMWYNG84BwwEeECcgggoBADs=
'description':
'The binary value above is a tiny arrow encoded as a gif image.'
|
"canonical": !!binary "\
R0lGODlhDAAMAIQAAP//9/X17unp5WZmZgAAAOfn515eXvPz7Y6OjuDg4J+fn5\
OTk6enp56enmlpaWNjY6Ojo4SEhP/++f/++f/++f/++f/++f/++f/++f/++f/+\
+f/++f/++f/++f/++f/++SH+Dk1hZGUgd2l0aCBHSU1QACwAAAAADAAMAAAFLC\
AgjoEwnuNAFOhpEMTRiggcz4BNJHrv/zCFcLiwMWYNG84BwwEeECcgggoBADs="
"generic": !!binary |
R0lGODlhDAAMAIQAAP//9/X17unp5WZmZgAAAOfn515eXvPz7Y6OjuDg4J+fn5
OTk6enp56enmlpaWNjY6Ojo4SEhP/++f/++f/++f/++f/++f/++f/++f/++f/+
+f/++f/++f/++f/++f/++SH+Dk1hZGUgd2l0aCBHSU1QACwAAAAADAAMAAAFLC
AgjoEwnuNAFOhpEMTRiggcz4BNJHrv/zCFcLiwMWYNG84BwwEeECcgggoBADs=
"description":
"The binary value above is a tiny arrow encoded as a gif image."
|
57H4 | sequence: !!seq
- entry
- !!seq
- nested
mapping: !!map
foo: bar
|
sequence: !!seq
- entry
- !!seq
- nested
mapping: !!map
foo: bar
|
'sequence': !!seq
- 'entry'
- !!seq
- 'nested'
'mapping': !!map
'foo': 'bar'
|
"sequence": !!seq
- "entry"
- !!seq
- "nested"
"mapping": !!map
"foo": "bar"
|
5BVJ | literal: |
some
text
folded: >
some
text
|
literal: |
some
text
folded: >
some
text
|
'literal': |
some
text
'folded': >
some
text
|
"literal": |
some
text
"folded": >
some
text
|
5C5M | - { one : two , three: four , }
- {five: six,seven : eight}
|
- { one : two , three: four , }
- {five: six,seven : eight}
|
- { 'one' : 'two' , 'three': 'four' , }
- {'five': 'six','seven' : 'eight'}
|
- { "one" : "two" , "three": "four" , }
- {"five": "six","seven" : "eight"}
|
5GBF | Folding:
"Empty line
as a line feed"
Chomping: |
Clipped empty lines
|
Folding:
"Empty line
as a line feed"
Chomping: |
Clipped empty lines
|
'Folding':
"Empty line
as a line feed"
'Chomping': |
Clipped empty lines
|
"Folding":
"Empty line
as a line feed"
"Chomping": |
Clipped empty lines
|
5KJE | - [ one, two, ]
- [three ,four]
|
- [ one, two, ]
- [three ,four]
|
- [ 'one', 'two', ]
- ['three' ,'four']
|
- [ "one", "two", ]
- ["three" ,"four"]
|
5NYZ | key: # Comment
value
|
key: # Comment
value
|
'key': # Comment
'value'
|
"key": # Comment
"value"
|
5TYM | %TAG !m! !my-
--- # Bulb here
!m!light fluorescent
...
%TAG !m! !my-
--- # Color here
!m!light green
|
%TAG !m! !my-
--- # Bulb here
!m!light fluorescent
...
%TAG !m! !my-
--- # Color here
!m!light green
|
%TAG !m! !my-
--- # Bulb here
!m!light fluorescent
...
%TAG !m! !my-
--- # Color here
!m!light green
|
%TAG !m! !my-
--- # Bulb here
!m!light fluorescent
...
%TAG !m! !my-
--- # Color here
!m!light green
|
5WE3 | ? explicit key # Empty value
? |
block key
: - one # Explicit compact
- two # block value
|
? explicit key # Empty value
? |
block key
: - one # Explicit compact
- two # block value
|
? 'explicit key' # Empty value
? |
block key
: - 'one' # Explicit compact
- 'two' # block value
|
? "explicit key" # Empty value
? |
block key
: - "one" # Explicit compact
- "two" # block value
|
65WH | - foo
|
- foo
|
- 'foo'
|
- "foo"
|
6BFJ | ---
&mapping
&key [ &item a, b, c ]: value
|
---
&mapping
&key [ &item a, b, c ]: value
|
---
&mapping
&key [ &item a, b, c ]: 'value'
|
---
&mapping
&key [ &item a, b, c ]: "value"
|
6CK3 | %TAG !e! tag:example.com,2000:app/
---
- !local foo
- !!str bar
- !e!tag%21 baz
|
%TAG !e! tag:example.com,2000:app/
---
- !local foo
- !!str bar
- !e!tag%21 baz
|
%TAG !e! tag:example.com,2000:app/
---
- !local foo
- !!str bar
- !e!tag%21 baz
|
%TAG !e! tag:example.com,2000:app/
---
- !local foo
- !!str bar
- !e!tag%21 baz
|
6H3V | 'foo: bar\': baz'
|
'foo: bar\': baz'
|
'foo: bar\': 'baz'''
|
"foo: bar\\": "baz'"
|
6HB6 | # Leading comment line spaces are
# neither content nor indentation.
Not indented:
By one space: |
By four
spaces
Flow style: [ # Leading spaces
By two, # in flow style
Also by two, # are neither
Still by two # content nor
] # indentation.
|
# Leading comment line spaces are
# neither content nor indentation.
Not indented:
By one space: |
By four
spaces
Flow style: [ # Leading spaces
By two, # in flow style
Also by two, # are neither
Still by two # content nor
] # indentation.
|
# Leading comment line spaces are
# neither content nor indentation.
'Not indented':
'By one space': |
By four
spaces
'Flow style': [ # Leading spaces
'By two', # in flow style
'Also by two', # are neither
'Still by two' # content nor
] # indentation.
|
# Leading comment line spaces are
# neither content nor indentation.
"Not indented":
"By one space": |
By four
spaces
"Flow style": [ # Leading spaces
"By two", # in flow style
"Also by two", # are neither
"Still by two" # content nor
] # indentation.
|
6JWB | foo: !!seq
- !!str a
- !!map
key: !!str value
|
foo: !!seq
- !!str a
- !!map
key: !!str value
|
'foo': !!seq
- !!str a
- !!map
'key': !!str value
|
"foo": !!seq
- !!str a
- !!map
"key": !!str value
|
6KGN | ---
a: &anchor
b: *anchor
|
---
a: &anchor
b: *anchor
|
---
'a': &anchor
'b': *anchor
|
---
"a": &anchor
"b": *anchor
|
6PBE | ---
?
- a
- b
:
- c
- d
|
---
?
- a
- b
:
- c
- d
|
---
?
- 'a'
- 'b'
:
- 'c'
- 'd'
|
---
?
- "a"
- "b"
:
- "c"
- "d"
|
6SLA | "foo\nbar:baz\tx \\$%^&*()x": 23
'x\ny:z\tx $%^&*()x': 24
|
"foo\nbar:baz\tx \\$%^&*()x": 23
x\ny:z\tx $%^&*()x: 24
|
"foo\nbar:baz\tx \\$%^&*()x": 23
'x\ny:z\tx $%^&*()x': 24
|
"foo\nbar:baz\tx \\$%^&*()x": 23
"x\\ny:z\\tx $%^&*()x": 24
|
6WLZ | # Private
---
!foo "bar"
...
# Global
%TAG ! tag:example.com,2000:app/
---
!foo "bar"
|
# Private
---
!foo "bar"
...
# Global
%TAG ! tag:example.com,2000:app/
---
!foo "bar"
|
# Private
---
!foo "bar"
...
# Global
%TAG ! tag:example.com,2000:app/
---
!foo "bar"
|
# Private
---
!foo "bar"
...
# Global
%TAG ! tag:example.com,2000:app/
---
!foo "bar"
|
6WPF | ---
"
foo
bar
baz
"
|
---
"
foo
bar
baz
"
|
---
"
foo
bar
baz
"
|
---
"
foo
bar
baz
"
|
6XDY | ---
---
|
---
---
|
---
---
|
---
---
|
6ZKB | Document
---
# Empty
...
%YAML 1.2
---
matches %: 20
|
Document
---
# Empty
...
%YAML 1.2
---
matches %: 20
|
'Document'
---
# Empty
...
%YAML 1.2
---
'matches %': 20
|
"Document"
---
# Empty
...
%YAML 1.2
---
"matches %": 20
|
735Y | -
"flow in block"
- >
Block scalar
- !!map # Block collection
foo : bar
|
-
flow in block
- >
Block scalar
- !!map # Block collection
foo : bar
|
-
'flow in block'
- >
Block scalar
- !!map # Block collection
'foo' : 'bar'
|
-
"flow in block"
- >
Block scalar
- !!map # Block collection
"foo" : "bar"
|
74H7 | !!str a: b
c: !!int 42
e: !!str f
g: h
!!str 23: !!bool false
|
!!str a: b
c: !!int 42
e: !!str f
g: h
!!str 23: !!bool false
|
!!str a: 'b'
'c': !!int 42
'e': !!str f
'g': 'h'
!!str 23: !!bool false
|
!!str a: "b"
"c": !!int 42
"e": !!str f
"g": "h"
!!str 23: !!bool false
|
7A4E | " 1st non-empty
2nd non-empty
3rd non-empty "
|
" 1st non-empty
2nd non-empty
3rd non-empty "
|
" 1st non-empty
2nd non-empty
3rd non-empty "
|
" 1st non-empty
2nd non-empty
3rd non-empty "
|
7BMT | ---
top1: &node1
&k1 key1: one
top2: &node2 # comment
key2: two
top3:
&k3 key3: three
top4: &node4
&k4 key4: four
top5: &node5
key5: five
top6: &val6
six
top7:
&val7 seven
|
---
top1: &node1
&k1 key1: one
top2: &node2 # comment
key2: two
top3:
&k3 key3: three
top4: &node4
&k4 key4: four
top5: &node5
key5: five
top6: &val6
six
top7:
&val7 seven
|
---
'top1': &node1
&k1 'key1': 'one'
'top2': &node2 # comment
'key2': 'two'
'top3':
&k3 'key3': 'three'
'top4': &node4
&k4 'key4': 'four'
'top5': &node5
'key5': 'five'
'top6': &val6
six
'top7':
&val7 'seven'
|
---
"top1": &node1
&k1 "key1": "one"
"top2": &node2 # comment
"key2": "two"
"top3":
&k3 "key3": "three"
"top4": &node4
&k4 "key4": "four"
"top5": &node5
"key5": "five"
"top6": &val6
six
"top7":
&val7 "seven"
|
7BUB | ---
hr:
- Mark McGwire
# Following node labeled SS
- &SS Sammy Sosa
rbi:
- *SS # Subsequent occurrence
- Ken Griffey
|
---
hr:
- Mark McGwire
# Following node labeled SS
- &SS Sammy Sosa
rbi:
- *SS # Subsequent occurrence
- Ken Griffey
|
---
'hr':
- 'Mark McGwire'
# Following node labeled SS
- &SS 'Sammy Sosa'
'rbi':
- *SS # Subsequent occurrence
- 'Ken Griffey'
|
---
"hr":
- "Mark McGwire"
# Following node labeled SS
- &SS "Sammy Sosa"
"rbi":
- *SS # Subsequent occurrence
- "Ken Griffey"
|
7FWL | !<tag:yaml.org,2002:str> foo :
!<!bar> baz
|
!<tag:yaml.org,2002:str> foo :
!<!bar> baz
|
!<tag:yaml.org,2002:str> foo :
!<!bar> baz
|
!<tag:yaml.org,2002:str> foo :
!<!bar> baz
|
7TMG | ---
[ word1
# comment
, word2]
|
---
[ word1
# comment
, word2]
|
---
[ 'word1'
# comment
, 'word2']
|
---
[ "word1"
# comment
, "word2"]
|
7W2P | ? a
? b
c:
|
? a
? b
c:
|
? 'a'
? 'b'
'c':
|
? "a"
? "b"
"c":
|
7ZZ5 | ---
nested sequences:
- - - []
- - - {}
key1: []
key2: {}
|
---
nested sequences:
- - - []
- - - {}
key1: []
key2: {}
|
---
'nested sequences':
- - - []
- - - {}
'key1': []
'key2': {}
|
---
"nested sequences":
- - - []
- - - {}
"key1": []
"key2": {}
|
82AN | ---word1
word2
|
---word1
word2
|
---word1
word2
|
---word1
word2
|
87E4 | 'implicit block key' : [
'implicit flow key' : value,
]
|
implicit block key : [
implicit flow key : value,
]
|
'implicit block key' : [
'implicit flow key' : 'value',
]
|
"implicit block key" : [
"implicit flow key" : "value",
]
|
8CWC | ---
key ends with two colons::: value
|
---
key ends with two colons::: value
|
---
'key ends with two colons::': 'value'
|
---
"key ends with two colons::": "value"
|
8KB6 | ---
- { single line, a: b}
- { multi
line, a: b}
|
---
- { single line, a: b}
- { multi
line, a: b}
|
---
- { 'single line', 'a': 'b'}
- { multi
line, 'a': 'b'}
|
---
- { "single line", "a": "b"}
- { multi
line, "a": "b"}
|
8MK2 | ! a
|
! a
|
! a
|
! a
|
8QBE | key:
- item1
- item2
|
key:
- item1
- item2
|
'key':
- 'item1'
- 'item2'
|
"key":
- "item1"
- "item2"
|
8UDB | [
"double
quoted", 'single
quoted',
plain
text, [ nested ],
single: pair,
]
|
[
"double
quoted", 'single
quoted',
plain
text, [ nested ],
single: pair,
]
|
[
"double
quoted", 'single
quoted',
plain
text, [ 'nested' ],
'single': 'pair',
]
|
[
"double
quoted", 'single
quoted',
plain
text, [ "nested" ],
"single": "pair",
]
|
93JH | - key: value
key2: value2
-
key3: value3
|
- key: value
key2: value2
-
key3: value3
|
- 'key': 'value'
'key2': 'value2'
-
'key3': 'value3'
|
- "key": "value"
"key2": "value2"
-
"key3": "value3"
|
9BXH | ---
- { "single line", a: b}
- { "multi
line", a: b}
|
---
- { single line, a: b}
- { "multi
line", a: b}
|
---
- { 'single line', 'a': 'b'}
- { "multi
line", 'a': 'b'}
|
---
- { "single line", "a": "b"}
- { "multi
line", "a": "b"}
|
9DXL | Mapping: Document
---
# Empty
...
%YAML 1.2
---
matches %: 20
|
Mapping: Document
---
# Empty
...
%YAML 1.2
---
matches %: 20
|
'Mapping': 'Document'
---
# Empty
...
%YAML 1.2
---
'matches %': 20
|
"Mapping": "Document"
---
# Empty
...
%YAML 1.2
---
"matches %": 20
|
9FMG | a:
b:
c: d
e:
f: g
h: i
|
a:
b:
c: d
e:
f: g
h: i
|
'a':
'b':
'c': 'd'
'e':
'f': 'g'
'h': 'i'
|
"a":
"b":
"c": "d"
"e":
"f": "g"
"h": "i"
|
9J7A | foo:
bar: baz
|
foo:
bar: baz
|
'foo':
'bar': 'baz'
|
"foo":
"bar": "baz"
|
9KAX | ---
&a1
!!str
scalar1
---
!!str
&a2
scalar2
---
&a3
!!str scalar3
---
&a4 !!map
&a5 !!str key5: value4
---
a6: 1
&anchor6 b6: 2
---
!!map
&a8 !!str key8: value7
---
!!map
!!str &a10 key10: value9
---
!!str &a11
value11
|
---
&a1
!!str
scalar1
---
!!str
&a2
scalar2
---
&a3
!!str scalar3
---
&a4 !!map
&a5 !!str key5: value4
---
a6: 1
&anchor6 b6: 2
---
!!map
&a8 !!str key8: value7
---
!!map
!!str &a10 key10: value9
---
!!str &a11
value11
|
---
&a1
!!str
scalar1
---
!!str
&a2
scalar2
---
&a3
!!str scalar3
---
&a4 !!map
&a5 !!str key5: 'value4'
---
'a6': 1
&anchor6 'b6': 2
---
!!map
&a8 !!str key8: 'value7'
---
!!map
!!str &a10 key10: 'value9'
---
!!str &a11
value11
|
---
&a1
!!str
scalar1
---
!!str
&a2
scalar2
---
&a3
!!str scalar3
---
&a4 !!map
&a5 !!str key5: "value4"
---
"a6": 1
&anchor6 "b6": 2
---
!!map
&a8 !!str key8: "value7"
---
!!map
!!str &a10 key10: "value9"
---
!!str &a11
value11
|
9MMW | - [ YAML : separate ]
- [ "JSON like":adjacent ]
- [ {JSON: like}:adjacent ]
|
- [ YAML : separate ]
- [ JSON like: adjacent ]
- [ {JSON: like}:adjacent ]
|
- [ 'YAML' : 'separate' ]
- [ 'JSON like':'adjacent' ]
- [ {JSON: like}:'adjacent' ]
|
- [ "YAML" : "separate" ]
- [ "JSON like":"adjacent" ]
- [ {JSON: like}:"adjacent" ]
|
9SHH | single: 'text'
double: "text"
|
single: text
double: text
|
'single': 'text'
'double': 'text'
|
"single": "text"
"double": "text"
|
9TFX | ---
" 1st non-empty
2nd non-empty
3rd non-empty "
|
---
" 1st non-empty
2nd non-empty
3rd non-empty "
|
---
" 1st non-empty
2nd non-empty
3rd non-empty "
|
---
" 1st non-empty
2nd non-empty
3rd non-empty "
|
9U5K | ---
# Products purchased
- item : Super Hoop
quantity: 1
- item : Basketball
quantity: 4
- item : Big Shoes
quantity: 1
|
---
# Products purchased
- item : Super Hoop
quantity: 1
- item : Basketball
quantity: 4
- item : Big Shoes
quantity: 1
|
---
# Products purchased
- 'item' : 'Super Hoop'
'quantity': 1
- 'item' : 'Basketball'
'quantity': 4
- 'item' : 'Big Shoes'
'quantity': 1
|
---
# Products purchased
- "item" : "Super Hoop"
"quantity": 1
- "item" : "Basketball"
"quantity": 4
- "item" : "Big Shoes"
"quantity": 1
|
9WXW | # Private
!foo "bar"
...
# Global
%TAG ! tag:example.com,2000:app/
---
!foo "bar"
|
# Private
!foo "bar"
...
# Global
%TAG ! tag:example.com,2000:app/
---
!foo "bar"
|
# Private
!foo "bar"
...
# Global
%TAG ! tag:example.com,2000:app/
---
!foo "bar"
|
# Private
!foo "bar"
...
# Global
%TAG ! tag:example.com,2000:app/
---
!foo "bar"
|
9YRD | a
b
c
d
e
|
a
b
c
d
e
|
a
b
c
d
e
|
a
b
c
d
e
|
A6F9 | strip: |-
text
clip: |
text
keep: |+
text
|
strip: |-
text
clip: |
text
keep: |+
text
|
'strip': |-
text
'clip': |
text
'keep': |+
text
|
"strip": |-
text
"clip": |
text
"keep": |+
text
|
A984 | a: b
c
d:
e
f
|
a: b
c
d:
e
f
|
'a': b
c
'd':
e
f
|
"a": b
c
"d":
e
f
|
AB8U | - single multiline
- sequence entry
|
- single multiline
- sequence entry
|
- single multiline
- sequence entry
|
- single multiline
- sequence entry
|
AZ63 | one:
- 2
- 3
four: 5
|
one:
- 2
- 3
four: 5
|
'one':
- 2
- 3
'four': 5
|
"one":
- 2
- 3
"four": 5
|
AZW3 | - bla"keks: foo
- bla]keks: foo
|
- bla"keks: foo
- bla]keks: foo
|
- 'bla"keks': 'foo'
- 'bla]keks': 'foo'
|
- "bla\"keks": "foo"
- "bla]keks": "foo"
|
BU8L | key: &anchor
!!map
a: b
|
key: &anchor
!!map
a: b
|
'key': &anchor
!!map
'a': 'b'
|
"key": &anchor
!!map
"a": "b"
|
C2DT | {
"adjacent":value,
"readable": value,
"empty":
}
|
{
adjacent: value,
readable: value,
empty:
}
|
{
'adjacent':'value',
'readable': 'value',
'empty':
}
|
{
"adjacent":"value",
"readable": "value",
"empty":
}
|
C4HZ | %TAG ! tag:clarkevans.com,2002:
--- !shape
# Use the ! handle for presenting
# tag:clarkevans.com,2002:circle
- !circle
center: &ORIGIN {x: 73, y: 129}
radius: 7
- !line
start: *ORIGIN
finish: { x: 89, y: 102 }
- !label
start: *ORIGIN
color: 0xFFEEBB
text: Pretty vector drawing.
|
%TAG ! tag:clarkevans.com,2002:
--- !shape
# Use the ! handle for presenting
# tag:clarkevans.com,2002:circle
- !circle
center: &ORIGIN {x: 73, y: 129}
radius: 7
- !line
start: *ORIGIN
finish: { x: 89, y: 102 }
- !label
start: *ORIGIN
color: 0xFFEEBB
text: Pretty vector drawing.
|
%TAG ! tag:clarkevans.com,2002:
--- !shape
# Use the ! handle for presenting
# tag:clarkevans.com,2002:circle
- !circle
'center': &ORIGIN {'x': 73, 'y': 129}
'radius': 7
- !line
'start': *ORIGIN
'finish': { 'x': 89, 'y': 102 }
- !label
'start': *ORIGIN
'color': 0xFFEEBB
'text': 'Pretty vector drawing.'
|
%TAG ! tag:clarkevans.com,2002:
--- !shape
# Use the ! handle for presenting
# tag:clarkevans.com,2002:circle
- !circle
"center": &ORIGIN {"x": 73, "y": 129}
"radius": 7
- !line
"start": *ORIGIN
"finish": { "x": 89, "y": 102 }
- !label
"start": *ORIGIN
"color": 0xFFEEBB
"text": "Pretty vector drawing."
|
CC74 | %TAG !e! tag:example.com,2000:app/
---
!e!foo "bar"
|
%TAG !e! tag:example.com,2000:app/
---
!e!foo "bar"
|
%TAG !e! tag:example.com,2000:app/
---
!e!foo "bar"
|
%TAG !e! tag:example.com,2000:app/
---
!e!foo "bar"
|
CN3R | &flowseq [
a: b,
&c c: d,
{ &e e: f },
&g { g: h }
]
|
&flowseq [
a: b,
&c c: d,
{ &e e: f },
&g { g: h }
]
|
&flowseq [
'a': 'b',
&c 'c': 'd',
{ &e 'e': 'f' },
&g { 'g': 'h' }
]
|
&flowseq [
"a": "b",
&c "c": "d",
{ &e "e": "f" },
&g { "g": "h" }
]
|
CPZ3 | ---
tab: "\tstring"
|
---
tab: "\tstring"
|
---
'tab': "\tstring"
|
---
"tab": "\tstring"
|
CT4Q | [
? foo
bar : baz
]
|
[
? foo
bar : baz
]
|
[
? foo
bar : 'baz'
]
|
[
? foo
bar : "baz"
]
|
CUP7 | anchored: !local &anchor value
alias: *anchor
|
anchored: !local &anchor value
alias: *anchor
|
'anchored': !local &anchor value
'alias': *anchor
|
"anchored": !local &anchor value
"alias": *anchor
|
D88J | a: [b, c]
|
a: [b, c]
|
'a': ['b', 'c']
|
"a": ["b", "c"]
|
D9TU | foo: bar
|
foo: bar
|
'foo': 'bar'
|
"foo": "bar"
|
DC7X | a: b
seq:
- a
c: d #X
|
a: b
seq:
- a
c: d #X
|
'a': 'b'
'seq':
- 'a'
'c': 'd' #X
|
"a": "b"
"seq":
- "a"
"c": "d" #X
|
DFF7 | {
? explicit: entry,
implicit: entry,
?
}
|
{
? explicit: entry,
implicit: entry,
?
}
|
{
? 'explicit': 'entry',
'implicit': 'entry',
?
}
|
{
? "explicit": "entry",
"implicit": "entry",
?
}
|
DHP8 | [foo, bar, 42]
|
[foo, bar, 42]
|
['foo', 'bar', 42]
|
["foo", "bar", 42]
|
E76Z | &a a: &b b
*b : *a
|
&a a: &b b
*b : *a
|
&a 'a': &b 'b'
*b : *a
|
&a "a": &b "b"
*b : *a
|
EHF6 | !!map {
k: !!seq
[ a, !!str b]
}
|
!!map {
k: !!seq
[ a, !!str b]
}
|
!!map {
'k': !!seq
[ 'a', !!str b]
}
|
!!map {
"k": !!seq
[ "a", !!str b]
}
|
EX5H | ---
a
b
c
d
e
|
---
a
b
c
d
e
|
---
a
b
c
d
e
|
---
a
b
c
d
e
|
EXG3 | ---
---word1
word2
|
---
---word1
word2
|
---
---word1
word2
|
---
---word1
word2
|
F2C7 | - &a !!str a
- !!int 2
- !!int &c 4
- &d d
|
- &a !!str a
- !!int 2
- !!int &c 4
- &d d
|
- &a !!str a
- !!int 2
- !!int &c 4
- &d 'd'
|
- &a !!str a
- !!int 2
- !!int &c 4
- &d "d"
|
F3CP | ---
{ a: [b, c, { d: [e, f] } ] }
|
---
{ a: [b, c, { d: [e, f] } ] }
|
---
{ 'a': ['b', 'c', { 'd': ['e', 'f'] } ] }
|
---
{ "a": ["b", "c", { "d": ["e", "f"] } ] }
|
F6MC | ---
a: >2
more indented
regular
b: >2
more indented
regular
|
---
a: >2
more indented
regular
b: >2
more indented
regular
|
---
'a': >2
more indented
regular
'b': >2
more indented
regular
|
---
"a": >2
more indented
regular
"b": >2
more indented
regular
|
F8F9 | # Strip
# Comments:
strip: |-
# text
# Clip
# comments:
clip: |
# text
# Keep
# comments:
keep: |+
# text
# Trail
# comments.
|
# Strip
# Comments:
strip: |-
# text
# Clip
# comments:
clip: |
# text
# Keep
# comments:
keep: |+
# text
# Trail
# comments.
|
# Strip
# Comments:
'strip': |-
# text
# Clip
# comments:
'clip': |
# text
# Keep
# comments:
'keep': |+
# text
# Trail
# comments.
|
# Strip
# Comments:
"strip": |-
# text
# Clip
# comments:
"clip": |
# text
# Keep
# comments:
"keep": |+
# text
# Trail
# comments.
|
FBC9 | safe: a!"#$%&'()*+,-./09:;<=>?@AZ[\]^_`az{|}~
!"#$%&'()*+,-./09:;<=>?@AZ[\]^_`az{|}~
safe question mark: ?foo
safe colon: :foo
safe dash: -foo
|
safe: a!"#$%&'()*+,-./09:;<=>?@AZ[\]^_`az{|}~
!"#$%&'()*+,-./09:;<=>?@AZ[\]^_`az{|}~
safe question mark: ?foo
safe colon: :foo
safe dash: -foo
|
'safe': a!"#$%&'()*+,-./09:;<=>?@AZ[\]^_`az{|}~
!"#$%&'()*+,-./09:;<=>?@AZ[\]^_`az{|}~
'safe question mark': '?foo'
'safe colon': ':foo'
'safe dash': '-foo'
|
"safe": a!"#$%&'()*+,-./09:;<=>?@AZ[\]^_`az{|}~
!"#$%&'()*+,-./09:;<=>?@AZ[\]^_`az{|}~
"safe question mark": "?foo"
"safe colon": ":foo"
"safe dash": "-foo"
|
FH7J | - !!str
-
!!null : a
b: !!str
- !!str : !!null
|
- !!str
-
!!null : a
b: !!str
- !!str : !!null
|
- !!str
-
!!null : 'a'
'b': !!str
- !!str : !!null
|
- !!str
-
!!null : "a"
"b": !!str
- !!str : !!null
|
FQ7F | - Mark McGwire
- Sammy Sosa
- Ken Griffey
|
- Mark McGwire
- Sammy Sosa
- Ken Griffey
|
- 'Mark McGwire'
- 'Sammy Sosa'
- 'Ken Griffey'
|
- "Mark McGwire"
- "Sammy Sosa"
- "Ken Griffey"
|
FTA2 | --- &sequence
- a
|
--- &sequence
- a
|
--- &sequence
- 'a'
|
--- &sequence
- "a"
|
FUP4 | [a, [b, c]]
|
[a, [b, c]]
|
['a', ['b', 'c']]
|
["a", ["b", "c"]]
|
G4RS | unicode: "Sosa did fine.\u263A"
control: "\b1998\t1999\t2000\n"
hex esc: "\x0d\x0a is \r\n"
single: '"Howdy!" he cried.'
quoted: ' # Not a ''comment''.'
tie-fighter: '|\-*-/|'
|
unicode: Sosa did fine.☺
control: "\b1998\t1999\t2000\n"
hex esc: "\x0d\x0a is \r\n"
single: '"Howdy!" he cried.'
quoted: ' # Not a ''comment''.'
tie-fighter: '|\-*-/|'
|
'unicode': 'Sosa did fine.☺'
'control': "\b1998\t1999\t2000\n"
'hex esc': "\x0d\x0a is \r\n"
'single': '"Howdy!" he cried.'
'quoted': ' # Not a ''comment''.'
'tie-fighter': '|\-*-/|'
|
"unicode": "Sosa did fine.\u263A"
"control": "\b1998\t1999\t2000\n"
"hex esc": "\x0d\x0a is \r\n"
"single": "\"Howdy!\" he cried."
"quoted": " # Not a 'comment'."
"tie-fighter": "|\\-*-/|"
|
G5U8 | ---
- [-, -]
|
---
- [-, -]
|
---
- ['-', '-']
|
---
- ["-", "-"]
|
GH63 | ? a
: 1.3
fifteen: d
|
? a
: 1.3
fifteen: d
|
? 'a'
: 1.3
'fifteen': 'd'
|
? "a"
: 1.3
"fifteen": "d"
|
H2RW | foo: 1
bar: 2
text: |
a
b
c
d
|
foo: 1
bar: 2
text: |
a
b
c
d
|
'foo': 1
'bar': 2
'text': |
a
b
c
d
|
"foo": 1
"bar": 2
"text": |
a
b
c
d
|
H3Z8 | ---
wanted: love ♥ and peace ☮
|
---
wanted: love ♥ and peace ☮
|
---
'wanted': 'love ♥ and peace ☮'
|
---
"wanted": "love ♥ and peace ☮"
|
HMK4 | name: Mark McGwire
accomplishment: >
Mark set a major league
home run record in 1998.
stats: |
65 Home Runs
0.278 Batting Average
|
name: Mark McGwire
accomplishment: >
Mark set a major league
home run record in 1998.
stats: |
65 Home Runs
0.278 Batting Average
|
'name': 'Mark McGwire'
'accomplishment': >
Mark set a major league
home run record in 1998.
'stats': |
65 Home Runs
0.278 Batting Average
|
"name": "Mark McGwire"
"accomplishment": >
Mark set a major league
home run record in 1998.
"stats": |
65 Home Runs
0.278 Batting Average
|
HMQ5 | !!str &a1 "foo":
!!str bar
&a2 baz : *a1
|
!!str &a1 "foo":
!!str bar
&a2 baz : *a1
|
!!str &a1 "foo":
!!str bar
&a2 'baz' : *a1
|
!!str &a1 "foo":
!!str bar
&a2 "baz" : *a1
|
HS5T | 1st non-empty
2nd non-empty
3rd non-empty
|
1st non-empty
2nd non-empty
3rd non-empty
|
1st non-empty
2nd non-empty
3rd non-empty
|
1st non-empty
2nd non-empty
3rd non-empty
|
J3BT | # Tabs and spaces
quoted: "Quoted "
block: |
void main() {
printf("Hello, world!\n");
}
|
# Tabs and spaces
quoted: "Quoted "
block: |
void main() {
printf("Hello, world!\n");
}
|
# Tabs and spaces
'quoted': "Quoted "
'block': |
void main() {
printf("Hello, world!\n");
}
|
# Tabs and spaces
"quoted": "Quoted "
"block": |
void main() {
printf("Hello, world!\n");
}
|
J5UC | foo: blue
bar: arrr
baz: jazz
|
foo: blue
bar: arrr
baz: jazz
|
'foo': 'blue'
'bar': 'arrr'
'baz': 'jazz'
|
"foo": "blue"
"bar": "arrr"
"baz": "jazz"
|
J7PZ | # The !!omap tag is one of the optional types
# introduced for YAML 1.1. In 1.2, it is not
# part of the standard tags and should not be
# enabled by default.
# Ordered maps are represented as
# A sequence of mappings, with
# each mapping having one key
--- !!omap
- Mark McGwire: 65
- Sammy Sosa: 63
- Ken Griffy: 58
|
# The !!omap tag is one of the optional types
# introduced for YAML 1.1. In 1.2, it is not
# part of the standard tags and should not be
# enabled by default.
# Ordered maps are represented as
# A sequence of mappings, with
# each mapping having one key
--- !!omap
- Mark McGwire: 65
- Sammy Sosa: 63
- Ken Griffy: 58
|
# The !!omap tag is one of the optional types
# introduced for YAML 1.1. In 1.2, it is not
# part of the standard tags and should not be
# enabled by default.
# Ordered maps are represented as
# A sequence of mappings, with
# each mapping having one key
--- !!omap
- 'Mark McGwire': 65
- 'Sammy Sosa': 63
- 'Ken Griffy': 58
|
# The !!omap tag is one of the optional types
# introduced for YAML 1.1. In 1.2, it is not
# part of the standard tags and should not be
# enabled by default.
# Ordered maps are represented as
# A sequence of mappings, with
# each mapping having one key
--- !!omap
- "Mark McGwire": 65
- "Sammy Sosa": 63
- "Ken Griffy": 58
|
J7VC | one: 2
three: 4
|
one: 2
three: 4
|
'one': 2
'three': 4
|
"one": 2
"three": 4
|
J9HZ | ---
hr: # 1998 hr ranking
- Mark McGwire
- Sammy Sosa
rbi:
# 1998 rbi ranking
- Sammy Sosa
- Ken Griffey
|
---
hr: # 1998 hr ranking
- Mark McGwire
- Sammy Sosa
rbi:
# 1998 rbi ranking
- Sammy Sosa
- Ken Griffey
|
---
'hr': # 1998 hr ranking
- 'Mark McGwire'
- 'Sammy Sosa'
'rbi':
# 1998 rbi ranking
- 'Sammy Sosa'
- 'Ken Griffey'
|
---
"hr": # 1998 hr ranking
- "Mark McGwire"
- "Sammy Sosa"
"rbi":
# 1998 rbi ranking
- "Sammy Sosa"
- "Ken Griffey"
|
JHB9 | # Ranking of 1998 home runs
---
- Mark McGwire
- Sammy Sosa
- Ken Griffey
# Team ranking
---
- Chicago Cubs
- St Louis Cardinals
|
# Ranking of 1998 home runs
---
- Mark McGwire
- Sammy Sosa
- Ken Griffey
# Team ranking
---
- Chicago Cubs
- St Louis Cardinals
|
# Ranking of 1998 home runs
---
- 'Mark McGwire'
- 'Sammy Sosa'
- 'Ken Griffey'
# Team ranking
---
- 'Chicago Cubs'
- 'St Louis Cardinals'
|
# Ranking of 1998 home runs
---
- "Mark McGwire"
- "Sammy Sosa"
- "Ken Griffey"
# Team ranking
---
- "Chicago Cubs"
- "St Louis Cardinals"
|
JQ4R | block sequence:
- one
- two : three
|
block sequence:
- one
- two : three
|
'block sequence':
- 'one'
- 'two' : 'three'
|
"block sequence":
- "one"
- "two" : "three"
|
JR7V | - a?string
- another ? string
- key: value?
- [a?string]
- [another ? string]
- {key: value? }
- {key: value?}
- {key?: value }
|
- a?string
- another ? string
- key: value?
- [a?string]
- [another ? string]
- {key: value? }
- {key: value?}
- {key?: value }
|
- 'a?string'
- 'another ? string'
- 'key': 'value?'
- ['a?string']
- ['another ? string']
- {'key': 'value?' }
- {'key': 'value?'}
- {'key?': 'value' }
|
- "a?string"
- "another ? string"
- "key": "value?"
- ["a?string"]
- ["another ? string"]
- {"key": "value?" }
- {"key": "value?"}
- {"key?": "value" }
|
JS2J | First occurrence: &anchor Value
Second occurrence: *anchor
|
First occurrence: &anchor Value
Second occurrence: *anchor
|
'First occurrence': &anchor 'Value'
'Second occurrence': *anchor
|
"First occurrence": &anchor "Value"
"Second occurrence": *anchor
|
JTV5 | ? a
true
: null
d
? e
42
|
? a
true
: null
d
? e
42
|
? a
true
: null
d
? e
42
|
? a
true
: null
d
? e
42
|
K4SU | - foo
- bar
- 42
|
- foo
- bar
- 42
|
- 'foo'
- 'bar'
- 42
|
- "foo"
- "bar"
- 42
|
K54U | --- scalar
|
--- scalar
|
--- 'scalar'
|
--- "scalar"
|
K858 | strip: >-
clip: >
keep: |+
|
strip: >-
clip: >
keep: |+
|
'strip': >-
'clip': >
'keep': |+
|
"strip": >-
"clip": >
"keep": |+
|
KK5P | complex1:
? - a
complex2:
? - a
: b
complex3:
? - a
: >
b
complex4:
? >
a
:
complex5:
? - a
: - b
|
complex1:
? - a
complex2:
? - a
: b
complex3:
? - a
: >
b
complex4:
? >
a
:
complex5:
? - a
: - b
|
'complex1':
? - 'a'
'complex2':
? - 'a'
: 'b'
'complex3':
? - 'a'
: >
b
'complex4':
? >
a
:
'complex5':
? - 'a'
: - 'b'
|
"complex1":
? - "a"
"complex2":
? - "a"
: "b"
"complex3":
? - "a"
: >
b
"complex4":
? >
a
:
"complex5":
? - "a"
: - "b"
|
KMK3 | foo:
bar: 1
baz: 2
|
foo:
bar: 1
baz: 2
|
'foo':
'bar': 1
'baz': 2
|
"foo":
"bar": 1
"baz": 2
|
KSS4 | --- "quoted
string"
--- &node foo
|
--- "quoted
string"
--- &node foo
|
--- "quoted
string"
--- &node 'foo'
|
--- "quoted
string"
--- &node "foo"
|
L94M | ? !!str a
: !!int 47
? c
: !!str d
|
? !!str a
: !!int 47
? c
: !!str d
|
? !!str a
: !!int 47
? 'c'
: !!str d
|
? !!str a
: !!int 47
? "c"
: !!str d
|
L9U5 | implicit block key : [
implicit flow key : value,
]
|
implicit block key : [
implicit flow key : value,
]
|
'implicit block key' : [
'implicit flow key' : 'value',
]
|
"implicit block key" : [
"implicit flow key" : "value",
]
|
LE5A | - !!str "a"
- 'b'
- &anchor "c"
- *anchor
- !!str
|
- !!str "a"
- b
- &anchor c
- *anchor
- !!str
|
- !!str "a"
- 'b'
- &anchor 'c'
- *anchor
- !!str
|
- !!str "a"
- "b"
- &anchor "c"
- *anchor
- !!str
|
LP6E | - [a, b , c ]
- { "a" : b
, c : 'd' ,
e : "f"
}
- [ ]
|
- [a, b , c ]
- { a : b
, c : d ,
e : f
}
- [ ]
|
- ['a', 'b' , 'c' ]
- { 'a' : 'b'
, 'c' : 'd' ,
'e' : 'f'
}
- [ ]
|
- ["a", "b" , "c" ]
- { "a" : "b"
, "c" : "d" ,
"e" : "f"
}
- [ ]
|
LQZ7 | "implicit block key" : [
"implicit flow key" : value,
]
|
implicit block key : [
implicit flow key : value,
]
|
'implicit block key' : [
'implicit flow key' : 'value',
]
|
"implicit block key" : [
"implicit flow key" : "value",
]
|
LX3P | [flow]: block
|
[flow]: block
|
[flow]: 'block'
|
[flow]: "block"
|
M29M | a: |
ab
cd
ef
...
|
a: |
ab
cd
ef
...
|
'a': |
ab
cd
ef
...
|
"a": |
ab
cd
ef
...
|
M5C3 | literal: |2
value
folded:
!foo
>1
value
|
literal: |2
value
folded:
!foo
>1
value
|
'literal': |2
value
'folded':
!foo
>1
value
|
"literal": |2
value
"folded":
!foo
>1
value
|
M5DY | ? - Detroit Tigers
- Chicago cubs
:
- 2001-07-23
? [ New York Yankees,
Atlanta Braves ]
: [ 2001-07-02, 2001-08-12,
2001-08-14 ]
|
? - Detroit Tigers
- Chicago cubs
:
- 2001-07-23
? [ New York Yankees,
Atlanta Braves ]
: [ 2001-07-02, 2001-08-12,
2001-08-14 ]
|
? - 'Detroit Tigers'
- 'Chicago cubs'
:
- '2001-07-23'
? [ New York Yankees,
Atlanta Braves ]
: [ '2001-07-02', '2001-08-12',
'2001-08-14' ]
|
? - "Detroit Tigers"
- "Chicago cubs"
:
- "2001-07-23"
? [ New York Yankees,
Atlanta Braves ]
: [ "2001-07-02", "2001-08-12",
"2001-08-14" ]
|
M7NX | ---
{
a: [
b, c, {
d: [e, f]
}
]
}
|
---
{
a: [
b, c, {
d: [e, f]
}
]
}
|
---
{
'a': [
'b', 'c', {
'd': ['e', 'f']
}
]
}
|
---
{
"a": [
"b", "c", {
"d": ["e", "f"]
}
]
}
|
MXS3 | - {a: b}
|
- {a: b}
|
- {'a': 'b'}
|
- {"a": "b"}
|
MZX3 | - plain
- "double quoted"
- 'single quoted'
- >
block
- plain again
|
- plain
- double quoted
- single quoted
- >
block
- plain again
|
- 'plain'
- 'double quoted'
- 'single quoted'
- >
block
- 'plain again'
|
- "plain"
- "double quoted"
- "single quoted"
- >
block
- "plain again"
|
NAT4 | ---
a: '
'
b: '
'
c: "
"
d: "
"
e: '
'
f: "
"
g: '
'
h: "
"
|
---
a: '
'
b: '
'
c: "
"
d: "
"
e: '
'
f: "
"
g: '
'
h: "
"
|
---
'a': '
'
'b': '
'
'c': "
"
'd': "
"
'e': '
'
'f': "
"
'g': '
'
'h': "
"
|
---
"a": '
'
"b": '
'
"c": "
"
"d": "
"
"e": '
'
"f": "
"
"g": '
'
"h": "
"
|
NB6Z | key:
value
with
tabs
|
key:
value
with
tabs
|
'key':
value
with
tabs
|
"key":
value
with
tabs
|
NP9H | "folded
to a space,
to a line feed, or \
\ non-content"
|
"folded
to a space,
to a line feed, or \
\ non-content"
|
"folded
to a space,
to a line feed, or \
\ non-content"
|
"folded
to a space,
to a line feed, or \
\ non-content"
|
P76L | %TAG !! tag:example.com,2000:app/
---
!!int 1 - 3 # Interval, not integer
|
%TAG !! tag:example.com,2000:app/
---
!!int 1 - 3 # Interval, not integer
|
%TAG !! tag:example.com,2000:app/
---
!!int 1 - 3 # Interval, not integer
|
%TAG !! tag:example.com,2000:app/
---
!!int 1 - 3 # Interval, not integer
|
P94K | key: # Comment
# lines
value
|
key: # Comment
# lines
value
|
'key': # Comment
# lines
'value'
|
"key": # Comment
# lines
"value"
|
PBJ2 | american:
- Boston Red Sox
- Detroit Tigers
- New York Yankees
national:
- New York Mets
- Chicago Cubs
- Atlanta Braves
|
american:
- Boston Red Sox
- Detroit Tigers
- New York Yankees
national:
- New York Mets
- Chicago Cubs
- Atlanta Braves
|
'american':
- 'Boston Red Sox'
- 'Detroit Tigers'
- 'New York Yankees'
'national':
- 'New York Mets'
- 'Chicago Cubs'
- 'Atlanta Braves'
|
"american":
- "Boston Red Sox"
- "Detroit Tigers"
- "New York Yankees"
"national":
- "New York Mets"
- "Chicago Cubs"
- "Atlanta Braves"
|
PRH3 | ' 1st non-empty
2nd non-empty
3rd non-empty '
|
' 1st non-empty
2nd non-empty
3rd non-empty '
|
' 1st non-empty
2nd non-empty
3rd non-empty '
|
' 1st non-empty
2nd non-empty
3rd non-empty '
|
PUW8 | ---
a: b
---
|
---
a: b
---
|
---
'a': 'b'
---
|
---
"a": "b"
---
|
PW8X | - &a
- a
-
&a : a
b: &b
-
&c : &a
-
? &d
-
? &e
: &a
|
- &a
- a
-
&a : a
b: &b
-
&c : &a
-
? &d
-
? &e
: &a
|
- &a
- 'a'
-
&a : 'a'
'b': &b
-
&c : &a
-
? &d
-
? &e
: &a
|
- &a
- "a"
-
&a : "a"
"b": &b
-
&c : &a
-
? &d
-
? &e
: &a
|
Q88A | - [ a, b ]
- { a: b }
- "a"
- 'b'
- c
|
- [ a, b ]
- { a: b }
- a
- b
- c
|
- [ 'a', 'b' ]
- { 'a': 'b' }
- 'a'
- 'b'
- 'c'
|
- [ "a", "b" ]
- { "a": "b" }
- "a"
- "b"
- "c"
|
Q8AD | ---
"folded
to a space,
to a line feed, or \
\ non-content"
|
---
"folded
to a space,
to a line feed, or \
\ non-content"
|
---
"folded
to a space,
to a line feed, or \
\ non-content"
|
---
"folded
to a space,
to a line feed, or \
\ non-content"
|
Q9WF | { first: Sammy, last: Sosa }:
# Statistics:
hr: # Home runs
65
avg: # Average
0.278
|
{ first: Sammy, last: Sosa }:
# Statistics:
hr: # Home runs
65
avg: # Average
0.278
|
{ first: Sammy, last: Sosa }:
# Statistics:
'hr': # Home runs
65
'avg': # Average
0.278
|
{ first: Sammy, last: Sosa }:
# Statistics:
"hr": # Home runs
65
"avg": # Average
0.278
|
QF4Y | [
foo: bar
]
|
[
foo: bar
]
|
[
'foo': 'bar'
]
|
[
"foo": "bar"
]
|
R52L | ---
{ top1: [item1, {key2: value2}, item3], top2: value2 }
|
---
{ top1: [item1, {key2: value2}, item3], top2: value2 }
|
---
{ 'top1': ['item1', {'key2': 'value2'}, 'item3'], 'top2': 'value2' }
|
---
{ "top1": ["item1", {"key2": "value2"}, "item3"], "top2": "value2" }
|
RLU9 | foo:
- 42
bar:
- 44
|
foo:
- 42
bar:
- 44
|
'foo':
- 42
'bar':
- 44
|
"foo":
- 42
"bar":
- 44
|
RR7F | a: 4.2
? d
: 23
|
a: 4.2
? d
: 23
|
'a': 4.2
? 'd'
: 23
|
"a": 4.2
? "d"
: 23
|
RTP8 | %YAML 1.2
---
Document
... # Suffix
|
%YAML 1.2
---
Document
... # Suffix
|
%YAML 1.2
---
'Document'
... # Suffix
|
%YAML 1.2
---
"Document"
... # Suffix
|
RZP5 | a: "double
quotes" # lala
b: plain
value # lala
c : #lala
d
? # lala
- seq1
: # lala
- #lala
seq2
e: &node # lala
- x: y
block: > # lala
abcde
|
a: "double
quotes" # lala
b: plain
value # lala
c : #lala
d
? # lala
- seq1
: # lala
- #lala
seq2
e: &node # lala
- x: y
block: > # lala
abcde
|
'a': "double
quotes" # lala
'b': plain
value # lala
'c' : #lala
'd'
? # lala
- 'seq1'
: # lala
- #lala
'seq2'
'e': &node # lala
- 'x': 'y'
'block': > # lala
abcde
|
"a": "double
quotes" # lala
"b": plain
value # lala
"c" : #lala
"d"
? # lala
- "seq1"
: # lala
- #lala
"seq2"
"e": &node # lala
- "x": "y"
"block": > # lala
abcde
|
RZT7 | ---
Time: 2001-11-23 15:01:42 -5
User: ed
Warning:
This is an error message
for the log file
---
Time: 2001-11-23 15:02:31 -5
User: ed
Warning:
A slightly different error
message.
---
Date: 2001-11-23 15:03:17 -5
User: ed
Fatal:
Unknown variable "bar"
Stack:
- file: TopClass.py
line: 23
code: |
x = MoreObject("345\n")
- file: MoreClass.py
line: 58
code: |-
foo = bar
|
---
Time: 2001-11-23 15:01:42 -5
User: ed
Warning:
This is an error message
for the log file
---
Time: 2001-11-23 15:02:31 -5
User: ed
Warning:
A slightly different error
message.
---
Date: 2001-11-23 15:03:17 -5
User: ed
Fatal:
Unknown variable "bar"
Stack:
- file: TopClass.py
line: 23
code: |
x = MoreObject("345\n")
- file: MoreClass.py
line: 58
code: |-
foo = bar
|
---
'Time': '2001-11-23 15:01:42 -5'
'User': 'ed'
'Warning':
This is an error message
for the log file
---
'Time': '2001-11-23 15:02:31 -5'
'User': 'ed'
'Warning':
A slightly different error
message.
---
'Date': '2001-11-23 15:03:17 -5'
'User': 'ed'
'Fatal':
'Unknown variable "bar"'
'Stack':
- 'file': 'TopClass.py'
'line': 23
'code': |
x = MoreObject("345\n")
- 'file': 'MoreClass.py'
'line': 58
'code': |-
foo = bar
|
---
"Time": "2001-11-23 15:01:42 -5"
"User": "ed"
"Warning":
This is an error message
for the log file
---
"Time": "2001-11-23 15:02:31 -5"
"User": "ed"
"Warning":
A slightly different error
message.
---
"Date": "2001-11-23 15:03:17 -5"
"User": "ed"
"Fatal":
"Unknown variable \"bar\""
"Stack":
- "file": "TopClass.py"
"line": 23
"code": |
x = MoreObject("345\n")
- "file": "MoreClass.py"
"line": 58
"code": |-
foo = bar
|
S4JQ | # Assuming conventional resolution:
- "12"
- 12
- ! 12
|
# Assuming conventional resolution:
- "12"
- 12
- ! 12
|
# Assuming conventional resolution:
- '12'
- 12
- ! 12
|
# Assuming conventional resolution:
- "12"
- 12
- ! 12
|
S4T7 | aaa: bbb
...
|
aaa: bbb
...
|
'aaa': 'bbb'
...
|
"aaa": "bbb"
...
|
S7BG | ---
- :,
|
---
- :,
|
---
- ':,'
|
---
- ":,"
|
S9E8 | sequence:
- one
- two
mapping:
? sky
: blue
sea : green
|
sequence:
- one
- two
mapping:
? sky
: blue
sea : green
|
'sequence':
- 'one'
- 'two'
'mapping':
? 'sky'
: 'blue'
'sea' : 'green'
|
"sequence":
- "one"
- "two"
"mapping":
? "sky"
: "blue"
"sea" : "green"
|
SBG9 | {a: [b, c], [d, e]: f}
|
{a: [b, c], [d, e]: f}
|
{'a': ['b', 'c'], [d, e]: 'f'}
|
{"a": ["b", "c"], [d, e]: "f"}
|
SKE5 | ---
seq:
&anchor
- a
- b
|
---
seq:
&anchor
- a
- b
|
---
'seq':
&anchor
- 'a'
- 'b'
|
---
"seq":
&anchor
- "a"
- "b"
|
SSW6 | ---
'here''s to "quotes"'
|
---
here's to "quotes"
|
---
'here''s to "quotes"'
|
---
"here's to \"quotes\""
|
SYW4 | hr: 65 # Home runs
avg: 0.278 # Batting average
rbi: 147 # Runs Batted In
|
hr: 65 # Home runs
avg: 0.278 # Batting average
rbi: 147 # Runs Batted In
|
'hr': 65 # Home runs
'avg': 0.278 # Batting average
'rbi': 147 # Runs Batted In
|
"hr": 65 # Home runs
"avg": 0.278 # Batting average
"rbi": 147 # Runs Batted In
|
T4YY | ---
' 1st non-empty
2nd non-empty
3rd non-empty '
|
---
' 1st non-empty
2nd non-empty
3rd non-empty '
|
---
' 1st non-empty
2nd non-empty
3rd non-empty '
|
---
' 1st non-empty
2nd non-empty
3rd non-empty '
|
TE2A | block mapping:
key: value
|
block mapping:
key: value
|
'block mapping':
'key': 'value'
|
"block mapping":
"key": "value"
|
TL85 | "
foo
bar
baz
"
|
"
foo
bar
baz
"
|
"
foo
bar
baz
"
|
"
foo
bar
baz
"
|
U3C3 | %TAG !yaml! tag:yaml.org,2002:
---
!yaml!str "foo"
|
%TAG !yaml! tag:yaml.org,2002:
---
!yaml!str "foo"
|
%TAG !yaml! tag:yaml.org,2002:
---
!yaml!str "foo"
|
%TAG !yaml! tag:yaml.org,2002:
---
!yaml!str "foo"
|
U3XV | ---
top1: &node1
&k1 key1: one
top2: &node2 # comment
key2: two
top3:
&k3 key3: three
top4:
&node4
&k4 key4: four
top5:
&node5
key5: five
top6: &val6
six
top7:
&val7 seven
|
---
top1: &node1
&k1 key1: one
top2: &node2 # comment
key2: two
top3:
&k3 key3: three
top4:
&node4
&k4 key4: four
top5:
&node5
key5: five
top6: &val6
six
top7:
&val7 seven
|
---
'top1': &node1
&k1 'key1': 'one'
'top2': &node2 # comment
'key2': 'two'
'top3':
&k3 'key3': 'three'
'top4':
&node4
&k4 'key4': 'four'
'top5':
&node5
'key5': 'five'
'top6': &val6
six
'top7':
&val7 'seven'
|
---
"top1": &node1
&k1 "key1": "one"
"top2": &node2 # comment
"key2": "two"
"top3":
&k3 "key3": "three"
"top4":
&node4
&k4 "key4": "four"
"top5":
&node5
"key5": "five"
"top6": &val6
six
"top7":
&val7 "seven"
|
U9NS | ---
time: 20:03:20
player: Sammy Sosa
action: strike (miss)
...
---
time: 20:03:47
player: Sammy Sosa
action: grand slam
...
|
---
time: 20:03:20
player: Sammy Sosa
action: strike (miss)
...
---
time: 20:03:47
player: Sammy Sosa
action: grand slam
...
|
---
'time': '20:03:20'
'player': 'Sammy Sosa'
'action': 'strike (miss)'
...
---
'time': '20:03:47'
'player': 'Sammy Sosa'
'action': 'grand slam'
...
|
---
"time": "20:03:20"
"player": "Sammy Sosa"
"action": "strike (miss)"
...
---
"time": "20:03:47"
"player": "Sammy Sosa"
"action": "grand slam"
...
|
UDM2 | - { url: http://example.org }
|
- { url: http://example.org }
|
- { 'url': 'http://example.org' }
|
- { "url": "http://example.org" }
|
UDR7 | sequence: [ one, two, ]
mapping: { sky: blue, sea: green }
|
sequence: [ one, two, ]
mapping: { sky: blue, sea: green }
|
'sequence': [ 'one', 'two', ]
'mapping': { 'sky': 'blue', 'sea': 'green' }
|
"sequence": [ "one", "two", ]
"mapping": { "sky": "blue", "sea": "green" }
|
UGM3 | --- !<tag:clarkevans.com,2002:invoice>
invoice: 34843
date : 2001-01-23
bill-to: &id001
given : Chris
family : Dumars
address:
lines: |
458 Walkman Dr.
Suite #292
city : Royal Oak
state : MI
postal : 48046
ship-to: *id001
product:
- sku : BL394D
quantity : 4
description : Basketball
price : 450.00
- sku : BL4438H
quantity : 1
description : Super Hoop
price : 2392.00
tax : 251.42
total: 4443.52
comments:
Late afternoon is best.
Backup contact is Nancy
Billsmer @ 338-4338.
|
--- !<tag:clarkevans.com,2002:invoice>
invoice: 34843
date : 2001-01-23
bill-to: &id001
given : Chris
family : Dumars
address:
lines: |
458 Walkman Dr.
Suite #292
city : Royal Oak
state : MI
postal : 48046
ship-to: *id001
product:
- sku : BL394D
quantity : 4
description : Basketball
price : 450.00
- sku : BL4438H
quantity : 1
description : Super Hoop
price : 2392.00
tax : 251.42
total: 4443.52
comments:
Late afternoon is best.
Backup contact is Nancy
Billsmer @ 338-4338.
|
--- !<tag:clarkevans.com,2002:invoice>
'invoice': 34843
'date' : '2001-01-23'
'bill-to': &id001
'given' : 'Chris'
'family' : 'Dumars'
'address':
'lines': |
458 Walkman Dr.
Suite #292
'city' : 'Royal Oak'
'state' : 'MI'
'postal' : 48046
'ship-to': *id001
'product':
- 'sku' : 'BL394D'
'quantity' : 4
'description' : 'Basketball'
'price' : 450.00
- 'sku' : 'BL4438H'
'quantity' : 1
'description' : 'Super Hoop'
'price' : 2392.00
'tax' : 251.42
'total': 4443.52
'comments':
Late afternoon is best.
Backup contact is Nancy
Billsmer @ 338-4338.
|
--- !<tag:clarkevans.com,2002:invoice>
"invoice": 34843
"date" : "2001-01-23"
"bill-to": &id001
"given" : "Chris"
"family" : "Dumars"
"address":
"lines": |
458 Walkman Dr.
Suite #292
"city" : "Royal Oak"
"state" : "MI"
"postal" : 48046
"ship-to": *id001
"product":
- "sku" : "BL394D"
"quantity" : 4
"description" : "Basketball"
"price" : 450.00
- "sku" : "BL4438H"
"quantity" : 1
"description" : "Super Hoop"
"price" : 2392.00
"tax" : 251.42
"total": 4443.52
"comments":
Late afternoon is best.
Backup contact is Nancy
Billsmer @ 338-4338.
|
V55R | - &a a
- &b b
- *a
- *b
|
- &a a
- &b b
- *a
- *b
|
- &a 'a'
- &b 'b'
- *a
- *b
|
- &a "a"
- &b "b"
- *a
- *b
|
V9D5 | - sun: yellow
- ? earth: blue
: moon: white
|
- sun: yellow
- ? earth: blue
: moon: white
|
- 'sun': 'yellow'
- ? 'earth': 'blue'
: 'moon': 'white'
|
- "sun": "yellow"
- ? "earth": "blue"
: "moon": "white"
|
W42U | - # Empty
- |
block node
- - one # Compact
- two # sequence
- one: two # Compact mapping
|
- # Empty
- |
block node
- - one # Compact
- two # sequence
- one: two # Compact mapping
|
- # Empty
- |
block node
- - 'one' # Compact
- 'two' # sequence
- 'one': 'two' # Compact mapping
|
- # Empty
- |
block node
- - "one" # Compact
- "two" # sequence
- "one": "two" # Compact mapping
|
WZ62 | {
foo : !!str,
!!str : bar,
}
|
{
foo : !!str,
!!str : bar,
}
|
{
'foo' : !!str,
!!str : 'bar',
}
|
{
"foo" : !!str,
!!str : "bar",
}
|
X38W | { &a [a, &b b]: *b, *a : [c, *b, d]}
|
{ &a [a, &b b]: *b, *a : [c, *b, d]}
|
{ &a [a, &b b]: *b, *a : ['c', *b, 'd']}
|
{ &a [a, &b b]: *b, *a : ["c", *b, "d"]}
|
X8DW | ---
? key
# comment
: value
|
---
? key
# comment
: value
|
---
? 'key'
# comment
: 'value'
|
---
? "key"
# comment
: "value"
|
XLQ9 | ---
scalar
%YAML 1.2
|
---
scalar
%YAML 1.2
|
---
scalar
%YAML 1.2
|
---
scalar
%YAML 1.2
|
XV9V | Folding:
"Empty line
as a line feed"
Chomping: |
Clipped empty lines
|
Folding:
"Empty line
as a line feed"
Chomping: |
Clipped empty lines
|
'Folding':
"Empty line
as a line feed"
'Chomping': |
Clipped empty lines
|
"Folding":
"Empty line
as a line feed"
"Chomping": |
Clipped empty lines
|
XW4D | a: "double
quotes" # lala
b: plain
value # lala
c : #lala
d
? # lala
- seq1
: # lala
- #lala
seq2
e:
&node # lala
- x: y
block: > # lala
abcde
|
a: "double
quotes" # lala
b: plain
value # lala
c : #lala
d
? # lala
- seq1
: # lala
- #lala
seq2
e:
&node # lala
- x: y
block: > # lala
abcde
|
'a': "double
quotes" # lala
'b': plain
value # lala
'c' : #lala
'd'
? # lala
- 'seq1'
: # lala
- #lala
'seq2'
'e':
&node # lala
- 'x': 'y'
'block': > # lala
abcde
|
"a": "double
quotes" # lala
"b": plain
value # lala
"c" : #lala
"d"
? # lala
- "seq1"
: # lala
- #lala
"seq2"
"e":
&node # lala
- "x": "y"
"block": > # lala
abcde
|
YD5X | - [name , hr, avg ]
- [Mark McGwire, 65, 0.278]
- [Sammy Sosa , 63, 0.288]
|
- [name , hr, avg ]
- [Mark McGwire, 65, 0.278]
- [Sammy Sosa , 63, 0.288]
|
- ['name' , 'hr', 'avg' ]
- ['Mark McGwire', 65, 0.278]
- ['Sammy Sosa' , 63, 0.288]
|
- ["name" , "hr", "avg" ]
- ["Mark McGwire", 65, 0.278]
- ["Sammy Sosa" , 63, 0.288]
|
Z67P | literal: |2
value
folded: !foo >1
value
|
literal: |2
value
folded: !foo >1
value
|
'literal': |2
value
'folded': !foo >1
value
|
"literal": |2
value
"folded": !foo >1
value
|
Z9M4 | %TAG !e! tag:example.com,2000:app/
---
- !e!foo "bar"
|
%TAG !e! tag:example.com,2000:app/
---
- !e!foo "bar"
|
%TAG !e! tag:example.com,2000:app/
---
- !e!foo "bar"
|
%TAG !e! tag:example.com,2000:app/
---
- !e!foo "bar"
|
ZF4X | Mark McGwire: {hr: 65, avg: 0.278}
Sammy Sosa: {
hr: 63,
avg: 0.288
}
|
Mark McGwire: {hr: 65, avg: 0.278}
Sammy Sosa: {
hr: 63,
avg: 0.288
}
|
'Mark McGwire': {'hr': 65, 'avg': 0.278}
'Sammy Sosa': {
'hr': 63,
'avg': 0.288
}
|
"Mark McGwire": {"hr": 65, "avg": 0.278}
"Sammy Sosa": {
"hr": 63,
"avg": 0.288
}
|
ZH7C | &a a: b
c: &d d
|
&a a: b
c: &d d
|
&a 'a': 'b'
'c': &d 'd'
|
&a "a": "b"
"c": &d "d"
|
ZK9H | { key: [[[
value
]]]
}
|
{ key: [[[
value
]]]
}
|
{ 'key': [[[
'value'
]]]
}
|
{ "key": [[[
"value"
]]]
}
|
ZWK4 | ---
a: 1
? b
&anchor c: 3
|
---
a: 1
? b
&anchor c: 3
|
---
'a': 1
? 'b'
&anchor 'c': 3
|
---
"a": 1
? "b"
&anchor "c": 3
|