--- &test-6SLA
Title: Allowed characters in quoted mapping key
Tags: [ double, mapping, single ]
"foo\nbar:baz\tx \\$%^&*()x": 23
'x\ny:z\tx $%^&*()x': 24
+STR
+DOC
+MAP
=VAL "foo\nbar:baz\tx \\$%^&*()x
=VAL :23
=VAL 'x\\ny:z\\tx $%^&*()x
=VAL :24
-MAP
-DOC
-STR
{
"foo\nbar:baz\tx \\$%^&*()x": 23,
"x\\ny:z\\tx $%^&*()x": 24
}
json_diff
parse error: Invalid numeric literal at line 1, column 3
json_diff
{
"foo\nbar:baz\tx \\$%^&*()x": "23",
"x\\ny:z\\tx $%^&*()x": "24"
}
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 =SYNX|"
1 1 1 1 =TEXT|foo
1 4 4 4 +ESC |
1 4 4 4 =SYNX|\x5c
1 5 5 5 =META|n
1 6 6 6 -ESC |
1 6 6 6 =TEXT|bar:baz
1 13 13 13 +ESC |
1 13 13 13 =SYNX|\x5c
1 14 14 14 =META|t
1 15 15 15 -ESC |
1 15 15 15 =TEXT|x.
1 17 17 17 +ESC |
1 17 17 17 =SYNX|\x5c
1 18 18 18 =META|\x5c
1 19 19 19 -ESC |
1 19 19 19 =TEXT|$%^&*()x
1 27 27 27 =SYNX|"
1 28 28 28 -VAL |
1 28 28 28 -NODE|
1 28 28 28 =SYNX|:
1 29 29 29 =WSPC|.
1 30 30 30 +NODE|
1 30 30 30 +VAL |
1 30 30 30 =TEXT|23
1 32 32 32 -VAL |
1 32 32 32 -NODE|
1 32 32 32 =EOL |\x0a
2 0 33 33 -PAIR|
2 0 33 33 +PAIR|
2 0 33 33 +NODE|
2 0 33 33 +VAL |
2 0 33 33 =SYNX|'
2 1 34 34 =TEXT|x\x5cny:z\x5ctx.$%^&*()x
2 19 52 52 =SYNX|'
2 20 53 53 -VAL |
2 20 53 53 -NODE|
2 20 53 53 =SYNX|:
2 21 54 54 =WSPC|.
2 22 55 55 +NODE|
2 22 55 55 +VAL |
2 22 55 55 =TEXT|24
2 24 57 57 -VAL |
2 24 57 57 -NODE|
2 24 57 57 =EOL |\x0a
3 0 58 58 -PAIR|
3 0 58 58 -MAP |
3 0 58 58 -NODE|
3 0 58 58 -DOC |
na
{
'foo
bar:baz x \\$%^&*()x' => 23,
'x\\ny:z\\tx $%^&*()x' => 24
}
na
{
'foo
bar:baz x \\$%^&*()x' => 23,
'x\\ny:z\\tx $%^&*()x' => 24
}
na
{
'foo
bar:baz x \\$%^&*()x' => 23,
'x\\ny:z\\tx $%^&*()x' => 24
}
na
{
'foo
bar:baz x \\$%^&*()x' => '23',
'x\\ny:z\\tx $%^&*()x' => '24'
}
na
{
'foo
bar:baz x \\$%^&*()x' => 23,
'x\\ny:z\\tx $%^&*()x' => 24
}
na
{
'foo
bar:baz x \\$%^&*()x' => 23,
'x\\ny:z\\tx $%^&*()x' => 24
}
na
{'foo\nbar:baz\tx \\$%^&*()x': 23, 'x\\ny:z\\tx $%^&*()x': 24}
na
{'foo\nbar:baz\tx \\$%^&*()x': 23, 'x\\ny:z\\tx $%^&*()x': 24}