I'm having trouble extracting data from a parsed JSON array obtained from a shipping company. Specifically, I am attempting to retrieve the short_name
of Cleveland, OH
, but all my attempts to access this information have been unsuccessful. When I use:
response.write("</br>" + " SHORT HAND " + array.records[0].graph.nodes[0].short_name + "</br>");
It returns Los Angeles, CA. Changing the node index to '1' results in undefined. However, if I replace short name with id, I can obtain its index consistently. What is the correct pathing to fetch the short_name information from any desired index? Below is an excerpt from the output; however, due to its extensive length (over 30 pages), I cannot include it all here. Any insights or advice would be greatly appreciated.
{
"records": [...]
}