I have following json. At first I need to get the tripId, fromCity, toCity.

Then based on tripId I need to get pickupPointDetails and 
dropoffPointDetails. Please help me do this, I m very new to json and node 
js and I need to get this done and its already taken so long and still  i 
havent found the solution

var onwardtrips = {  
   "tripId":"1284792",
"fromCity":"Singapore",
"toCity":"Malacca",
"operatorCode":"SA",
"operatorName":"Starmart Express",
"departTime":"2014-01-20 14:00:00.0",
"busType":"Executive
    },  
   pickupPointDetails":[
{
"pickupPointId":"78",
"departureTime":"2014-01-20 14:00:00.0",
"pickupPointName":"Golden Mile Tower, Beach Road"
}
],
"dropoffPointDetails":[
{
"dropOffPointName":"Melaka Sentral",
"dropOffPointId":"1284792"}
    ]  
} 

-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to