Null Values

30 views
Skip to first unread message

matt_nicolls

unread,
Oct 19, 2007, 4:03:27 PM10/19/07
to json-taglib
<json:object>
<json:property name="test" value="${null}" />
</json:object>

results in

{"test":""}

but in my opinion should result in

{"test":null}

How am I supposed to represent null values if these tags emit empty
strings when the value is null? Perhaps you could implement a new
attribute for the json:property tag called "defaultValue" which
defaults to null, then you can be explicit about how you want null
values handled.

I would have fixed it myself, but the SVN url on the site isn't
working.

-Matt

Reply all
Reply to author
Forward
0 new messages