Skip to content

Instantly share code, notes, and snippets.

Created December 28, 2017 20:52
Show Gist options
  • Save anonymous/c3e98f57c0cc9cdc71fd28b7681e280b to your computer and use it in GitHub Desktop.
Save anonymous/c3e98f57c0cc9cdc71fd28b7681e280b to your computer and use it in GitHub Desktop.
- {foo:}
- {foo:,bar}
- [foo:]
+STR
+DOC
+SEQ
+MAP {}
=VAL :foo
=VAL :
-MAP
+MAP {}
=VAL :foo
=VAL :
=VAL :bar
=VAL :
-MAP
+SEQ []
+MAP {}
=VAL :foo
=VAL :
-MAP
-SEQ
-SEQ
-DOC
-STR
[
{},
{},
[
{}
]
]
[
{
"foo": null
},
{
"foo": null,
"bar": null
},
[
{
"foo": null
}
]
]
Parse error: found unexpected ':'
+STR
+DOC
+SEQ
Parse error: found unexpected ':'
luajit: found unexpected ':' at document: 1, line: 1, column: 7
while scanning a plain scalar at line: 1, column: 4
stack traceback:
[C]: in function 'load'
/bin/luajit-json:6: in main chunk
[C]: at 0x004044a0
+STR
+DOC
+SEQ
+MAP
=VAL :foo
=VAL :
-MAP
+MAP
=VAL :foo
=VAL :
=VAL :bar
=VAL :
-MAP
+SEQ
=VAL :foo
Traceback (most recent call last)
nimyaml_event.nim(8) nimyaml_event
stream.nim(220) finished
Error: unhandled exception: Unexpected token (expected ',') [YamlStreamError]
YAML Error: Can't parse inline map
Code: YAML_PARSE_ERR_INLINE_MAP
Line: 2
Document: 1
at /lib/perl5/YAML/Loader.pm line 491.
Line : 1
Message : Not Implemented: Flow Style
Where : /lib/perl5/YAML/PP/Lexer.pm line 526
YAML : "- "
at /bin/perl5-pp-event line 18.
+STR
[
{
'foo:' => undef
},
{
'foo:,bar' => undef
},
[
'foo:'
]
]
YAML::XS::Load Error: The problem:
found unexpected ':'
was found at document: 1, line: 1, column: 7
while scanning a plain scalar at line: 1, column: 4
+STR
+DOC
+SEQ
+MAP
=VAL :foo
=VAL :
-MAP
+MAP
=VAL :foo
=VAL :
=VAL :bar
=VAL :
-MAP
+SEQ
+MAP
=VAL :foo
=VAL :
-MAP
-SEQ
-SEQ
-DOC
-STR
[{'foo': None}, {'bar': None, 'foo': None}, [{'foo': None}]]
+STR
+DOC
+SEQ
+MAP
=VAL :foo:
=VAL :
-MAP
+MAP
=VAL :foo:
=VAL :
=VAL :bar
=VAL :
-MAP
+SEQ
=VAL :foo:
-SEQ
-SEQ
-DOC
-STR
[{'foo:': None}, {'bar': None, 'foo:': None}, ['foo:']]
/usr/lib/ruby/2.3.0/psych.rb:380:in `parse': (<unknown>): found unexpected ':' while scanning a plain scalar at line 1 column 4 (Psych::SyntaxError)
from /usr/lib/ruby/2.3.0/psych.rb:380:in `parse_stream'
from /usr/lib/ruby/2.3.0/psych.rb:463:in `load_stream'
from /bin/ruby-json:6:in `<main>'
=== <label goes here>
from: <Source URL or description>
tags: tag words
+++ in-yaml
- {foo:}
- {foo:,bar}
- [foo:]
+++ out-yaml
Parse error: found unexpected ':'
+++ in-json
[
{
"foo": null
},
{
"foo": null,
"bar": null
},
[
{
"foo": null
}
]
]
+++ test-event
Parse error: found unexpected ':'
+STR
+DOC
+SEQ
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment