[OpenSIPS-Users] Unable to parse JSON

Liviu Chircu liviu at opensips.org
Tue Jul 30 14:02:27 EDT 2019


On 30.07.2019 10:40, Hamid Hashmi wrote:
>
> it gives me a NULL Value. What am I doing wrong?

Sounds like you're using the "=" assignment operator instead of the ":=" 
one,
which is the proper way of telling the module to parse a JSON input string.

So, for example, you'd do:

$json(response) := $var(rest_client_result);

Cheers,

-- 
Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20190730/88fa4647/attachment.html>


More information about the Users mailing list