Hi, Kurtis!

I've just run your test and the output seems ok:
Kurtis [ 1, 2 ]
Are you sure there is no other function between those two lines that could delete the json? Also, what version of OpenSIPS are you using?

Best regards,

Razvan Crainea
OpenSIPS Core Developer
http://www.opensips-solutions.com

On 07/08/2014 03:01 AM, Kurtis Heimerl wrote:
Hey All,

I seem to be having some very simple issues with the json module. The
following code in my config:

$json(k) := "[1,2]";
xlog("L_ERR","Kurtis $json(k)");

Is producing the following output:

Jul  7 23:59:00 NAME /usr/sbin/opensips[6379]: Kurtis2 <null>

This looks to be as simple as I can get a json command, but I can't
figure out why it's null. Changing the  ":=" to a "=" and the "[1,2]" to
a "4" works, but that's just a normal variable. Anyone know what's up?

Thanks!


_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to