Re: [SR-Users] jansson_get path to access a JSON reponse containing an array

2016-09-14 Thread Daniel-Constantin Mierla
sisdn", > > Thanks > > Jon > > > From: hunter...@hotmail.com > To: sr-users@lists.sip-router.org > Date: Wed, 14 Sep 2016 08:41:41 +0000 > Subject: [SR-Users] jansson_get path to access a JSON

Re: [SR-Users] jansson_get path to access a JSON reponse containing an array

2016-09-14 Thread Jonathan Hunter
Hi guys, Sorry for the noise! This works; jansson_get("destination[0].msisdn", Thanks Jon From: hunter...@hotmail.com To: sr-users@lists.sip-router.org Date: Wed, 14 Sep 2016 08:41:41 + Subject: [SR-Users] jansson_get path to access a JSON reponse containing an array Hi g

[SR-Users] jansson_get path to access a JSON reponse containing an array

2016-09-14 Thread Jonathan Hunter
Hi guys, Sorry for the question but Its not clear to me using json_path and the jansson module how to get the contents of a response containing an array. Please see the returned response below that I am getting on kamailio; {"status":"success","destination"[{"msisdn":"4412345566","route":"Carrier1