x2js icon indicating copy to clipboard operation
x2js copied to clipboard

Handle case of "i:nil="true" for the value being null.

Open robblovell opened this issue 8 years ago • 1 comments

A standard way of handling null in an XML is to do this:

<thing i:nil="true"></thing>

which translates to:

{ "thing": null }

This is different than just having an empty clause:

<thing></thing>

which translates to:

{ "thing":"" }

robblovell avatar Jan 23 '17 17:01 robblovell

Background: http://stackoverflow.com/questions/463597/what-does-inil-true-mean

robblovell avatar Jan 23 '17 17:01 robblovell