yaml.js icon indicating copy to clipboard operation
yaml.js copied to clipboard

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

Open dannydulai opened this issue 7 years ago • 0 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:

dannydulai avatar Nov 03 '17 18:11 dannydulai