I think libjson_c treats empty string as null. Let me run some tests to
confirm it.

Thank you.


On Sun, Feb 10, 2013 at 6:39 PM, Brett Nemeroff <[email protected]> wrote:

> 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
>
>
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>


-- 
Muhammad Shahzad
-----------------------------------
CISCO Rich Media Communication Specialist (CRMCS)
CISCO Certified Network Associate (CCNA)
Cell: +49 176 99 83 10 85
MSN: [email protected]
Email: [email protected]
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to