--- &test-KMK3
Title: Block Submapping
Tags: [ mapping ]
+STR
+DOC
+MAP
=VAL :foo
+MAP
=VAL :bar
=VAL :1
-MAP
=VAL :baz
=VAL :2
-MAP
-DOC
-STR
{
"baz": 2,
"foo": {
"bar": 1
}
}
json_diff
{
"baz": "2",
"foo": {
"bar": "1"
}
}
json_diff
{
"baz": "2",
"foo": {
"bar": "1"
}
}
na
Line Col Char Byte Token|Content
1 0 0 0 +DOC |
1 0 0 0 +NODE|
1 0 0 0 +MAP |
1 0 0 0 +PAIR|
1 0 0 0 +NODE|
1 0 0 0 +VAL |
1 0 0 0 =TEXT|foo
1 3 3 3 -VAL |
1 3 3 3 -NODE|
1 3 3 3 =SYNX|:
1 4 4 4 +NODE|
1 4 4 4 =EOL |\x0a
2 0 5 5 +MAP |
2 0 5 5 =DENT|..
2 2 7 7 +PAIR|
2 2 7 7 +NODE|
2 2 7 7 +VAL |
2 2 7 7 =TEXT|bar
2 5 10 10 -VAL |
2 5 10 10 -NODE|
2 5 10 10 =SYNX|:
2 6 11 11 =WSPC|.
2 7 12 12 +NODE|
2 7 12 12 +VAL |
2 7 12 12 =TEXT|1
2 8 13 13 -VAL |
2 8 13 13 -NODE|
2 8 13 13 =EOL |\x0a
3 0 14 14 -PAIR|
3 0 14 14 -MAP |
3 0 14 14 -NODE|
3 0 14 14 -PAIR|
3 0 14 14 +PAIR|
3 0 14 14 +NODE|
3 0 14 14 +VAL |
3 0 14 14 =TEXT|baz
3 3 17 17 -VAL |
3 3 17 17 -NODE|
3 3 17 17 =SYNX|:
3 4 18 18 =WSPC|.
3 5 19 19 +NODE|
3 5 19 19 +VAL |
3 5 19 19 =TEXT|2
3 6 20 20 -VAL |
3 6 20 20 -NODE|
3 6 20 20 =EOL |\x0a
4 0 21 21 -PAIR|
4 0 21 21 -MAP |
4 0 21 21 -NODE|
4 0 21 21 -DOC |
na
{
'baz' => 2,
'foo' => {
'bar' => 1
}
}
na
{
'baz' => 2,
'foo' => {
'bar' => 1
}
}
na
{
'baz' => 2,
'foo' => {
'bar' => 1
}
}
na
{
'baz' => '2',
'foo' => {
'bar' => '1'
}
}
na
{
'baz' => 2,
'foo' => {
'bar' => 1
}
}
na
{
'baz' => 2,
'foo' => {
'bar' => 1
}
}
na
{'baz': 2, 'foo': {'bar': 1}}
na
{'baz': 2, 'foo': {'bar': 1}}