[OpenSIPS-Users] JSON Bug, empty strings

Brett Nemeroff brett at nemeroff.com
Sun Feb 10 18:39:50 CET 2013


Hey all,
I think I see a bug in the JSON module; but it might just be a "feature" of
JSON.

Seems that when I assign an empty string to a JSON element, it's storing it
as NULL. So for example:

$json(object/element) = '';

If I print that, I get <null> in an xlog.

Is this expected? I'd really like to be able to store empty strings.

Thanks!
-Brett
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20130210/c44efb25/attachment.htm>


More information about the Users mailing list