YAML source |
yaml2json.hs |
yaml2json.pl |
yaml2json.py |
yaml2json.rb |
rq |
|
|
|
|
|
|
|
❌
yaml2json.hs: UnexpectedEvent {_received = Nothing, _expected = Just EventStreamStart}
|
|
|
❌
/usr/lib/ruby/1.9.1/json/common.rb:216:in `generate': only generation of JSON objects or arrays allowed (JSON::GeneratorError)
from /usr/lib/ruby/1.9.1/json/common.rb:216:in `generate'
from /usr/lib/ruby/1.9.1/json/common.rb:352:in `dump'
from ./yaml2json.rb:6:in `'
|
|
|
|
|
|
|
|
- 1.23015e+3
- 12.3015e+02
- 1230.15
|
[1230.15,1230.15,1230.15]
|
["1.23015e+3","12.3015e+02","1230.15"]
|
[1230.15, 1230.15, 1230.15]
|
[1230.15,1230.15,1230.15]
|
[1230.15,1230.15,1230.15]
|
|
|
|
|
❌
/usr/lib/ruby/1.9.1/json/common.rb:216:in `generate': only generation of JSON objects or arrays allowed (JSON::GeneratorError)
from /usr/lib/ruby/1.9.1/json/common.rb:216:in `generate'
from /usr/lib/ruby/1.9.1/json/common.rb:352:in `dump'
from ./yaml2json.rb:6:in `'
|
|
|
|
|
❌
ConstructorError: could not determine a constructor for the tag 'tag:yaml.org,2002:merge'
in "", line 1, column 1
|
❌
/usr/lib/ruby/1.9.1/json/common.rb:216:in `generate': only generation of JSON objects or arrays allowed (JSON::GeneratorError)
from /usr/lib/ruby/1.9.1/json/common.rb:216:in `generate'
from /usr/lib/ruby/1.9.1/json/common.rb:352:in `dump'
from ./yaml2json.rb:6:in `'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
❌
ConstructorError: while constructing a mapping
in "", line 1, column 1
expected a mapping or list of mappings for merging, but found scalar
in "", line 1, column 5
|
|
|
a: &alias
k1: v1
k2: v2
b:
<<: *alias
k1: override
k3: v3
|
{"a":{"k2":"v2","k1":"v1"},"b":{"k3":"v3","k2":"v2","k1":"override"}}
|
{"b":{"k1":"override","<<":{"k1":"v1","k2":"v2"},"k3":"v3"},"a":{"k1":"v1","k2":"v2"}}
|
{"a": {"k2": "v2", "k1": "v1"}, "b": {"k3": "v3", "k2": "v2", "k1": "override"}}
|
{"a":{"k1":"v1","k2":"v2"},"b":{"k1":"override","k2":"v2","k3":"v3"}}
|
{"a":{"k1":"v1","k2":"v2"},"b":{"<<":{"k1":"v1","k2":"v2"},"k1":"override","k3":"v3"}}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
❌
Wide character in say at ./yaml2json.pl line 10, <> line 1.
|
|
❌
/usr/lib/ruby/1.9.1/json/common.rb:216:in `generate': only generation of JSON objects or arrays allowed (JSON::GeneratorError)
from /usr/lib/ruby/1.9.1/json/common.rb:216:in `generate'
from /usr/lib/ruby/1.9.1/json/common.rb:352:in `dump'
from ./yaml2json.rb:6:in `'
|
|