Closed netsensei closed 4 years ago
e.g.
catmandu convert Null to YAML --fix "set_field('foo', '1234.')" will yield:
catmandu convert Null to YAML --fix "set_field('foo', '1234.')"
--- foo: 1234 ...
These values do work correctly:
When converting to JSON we get this result:
catmandu convert Null to JSON --fix "set_field('foo', '1234.')" will yield:
catmandu convert Null to JSON --fix "set_field('foo', '1234.')"
[{"foo":1234.0}]
Note how 1234. is converted to 1234.0
1234.
1234.0
Escaping the dot doesn't work:
catmandu convert Null to JSON --fix "set_field('foo', '1234\.')" will yield:
catmandu convert Null to JSON --fix "set_field('foo', '1234\.')"
[{"foo":1234\\.}]
fixed in 1.2009
e.g.
catmandu convert Null to YAML --fix "set_field('foo', '1234.')"
will yield:These values do work correctly:
When converting to JSON we get this result:
catmandu convert Null to JSON --fix "set_field('foo', '1234.')"
will yield:Note how
1234.
is converted to1234.0
Escaping the dot doesn't work:
catmandu convert Null to JSON --fix "set_field('foo', '1234\.')"
will yield: