Hello

 

The following does not work, and I cannot figure out why

 

OS = WIN 7 64 bit

gretl = cvs build date 2014-07-22

 

sprintf json "{\"status\":\"REQUEST_SUCCEEDED\",\"responseTime\":1103,\"message\":[\"No Data Available for Series LEU0254555900 Year: 1950\",\"No Data Available for Series LEU0254555900 Year: 1951\",\"No Data Available for Series LEU0254555900 Year: 1952\"],\"Results\":{\"series\":[{\"seriesID\":\"LEU0254555900\",\"data\":[]}]}}"

printf "%s\n", json

test = jsonget(json, "$.message")

printf "test = \n %s", test

 

 

When I use http://jsonpath.curiousconcept.com/ to test the path “$.message” it works fine. Note that to past the json string into the pathfinder tool use this string:

 

{"status":"REQUEST_SUCCEEDED","responseTime":1103,"message":["No Data Available for Series LEU0254555900 Year: 1950","No Data Available for Series LEU0254555900 Year: 1951","No Data Available for Series LEU0254555900 Year: 1952"],"Results":{"series":[{"seriesID":"LEU0254555900","data":[]}]}}

 

Thanks