I am new in programming. I am currently working on a map function which requires me to get directions between current location and the final location, but I do not know how to extract the text from the JSON RESPONSE.
This JSON response is generated from the api.
This is only a part of the JSON response.
{
"attributes" : {
"length" : 0.094387438,
"time" : 0.2831,
"text" : "Go west on _________",
"ETA" : 1365037200000,
"maneuverType" : "esriDMTStraight"
},
"compressedGeometry" : "+1+t1b+170r-2f-a-e-2"
}
I wish to extract the "text" in the codes I show to display it on a listbox.
Any help will be much appreciated.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…