Quantcast

Extracting root of json response

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Extracting root of json response

devnewb
Hi Guys.

As opposed to having a nice top level element like :

{"results":[{...},{...}]}

which I would get to with :

... ># { 'results ! list }

the json returned by the call I am making is like :

[{...},{...},{...}]

how do I get to this ?

Thanks for your help!


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Extracting root of json response

devnewb
Actually.. looks like dispatch has no chance to work with the data.  When I curl this resource it says :

* Connection #0 to host localhost left intact
* Closing connection #0

I am ssh tunneling to enable connection.  There is always an empty response when getting my response via dispatch.

Any ideas ?

Thanks for your help.
Loading...