jeremyfa / yaml.js

Standalone JavaScript YAML 1.2 Parser & Encoder. Works under node.js and all major browsers. Also brings command line YAML/JSON conversion tools.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

null entry shoudl not be written as null, instead it should be written has blank

dannydulai opened this issue · comments

http://www.yaml.org/spec/1.2/spec.html#id2786563

states that blank values are 'null' -- so when doing json -> yaml, it should not be written as null:

% echo '{ "o": { "foo" : null } }' | json2yaml  -
o:
  foo: null

it should be:

% echo '{ "o": { "foo" : null } }' | json2yaml  -
o:
  foo: