I would like a piece of javascript or jquery that parses the following JSON string and returns specific values.
/*Values to return */
I would like to have these string segments returned with values:
"Alt":
"Mdl":
"OpIcao":
in the sample below this would return 2 sets of values:
"Alt":100,
"Mdl":"Boeing 737NG 852/W",
"Op":"Aeroméxico",
"Alt":1200,
"Mdl":"Boeing 757-200",
"Op":"Donald Trump",
/*conditions */
1.) The string may contain 0-5 sets,
2.) Sometimes the sets may not be complete - just return what matches
/* JSON feed sample*/
{"src":1,"feeds":[{"id":1,"name":"From Consolidator","polarPlot":false}],"srcFeed":1,"showSil":true,"showFlg":true,"showPic":true,"flgH":20,"flgW":85,"acList":[{"Id":854181,"Rcvr":1,"HasSig":true,"Sig":15,"Icao":"0D08A5","Bad":false,"Reg":"XA-AMO","FSeen":"\/Date(1472534365024)\/","TSecs":4360,"CMsgs":3460,"Alt":100,"GAlt":59,"InHg":29.8789368,"AltT":0,"Call":"AMX630","Lat":33.935767,"Long":-118.398514,"PosTime":1472538708826,"Mlat":false,"Tisb":false,"Spd":94.0,"Trak":264.4,"TrkH":false,"Type":"B738","Mdl":"Boeing 737NG 852/W","Man":"Boeing","CNum":"43665","From":"MMMX Licenciado Benito Juarez, Mexico City, Mexico","To":"CYYZ Lester B. Pearson, Toronto, Canada","Op":"Aeroméxico","OpIcao":"AMX","Sqk":"2667","Help":false,"Vsi":-832,"VsiT":0,"Dst":9.49,"Brng":181.1,"WTC":2,"Species":1,"Engines":"2","EngType":3,"EngMount":0,"Mil":false,"Cou":"Mexico","HasPic":false,"Interested":false,"FlightsCount":0,"Gnd":true,"SpdTyp":0,"CallSus":false,"Trt":2,"Year":"2015"},{"Id":11154448,"Rcvr":1,"HasSig":false,"Icao":"AA3410","Bad":false,"Reg":"N757AF","FSeen":"\/Date(1472531504171)\/","TSecs":7221,"CMsgs":5090,"Alt":1200,"GAlt":1159,"InHg":29.8789368,"AltT":0,"Call":"N757AF","Lat":33.928341,"Long":-118.323784,"PosTime":1472538725341,"Mlat":false,"Tisb":false,"Spd":134.0,"Trak":262.7,"TrkH":false,"Type":"B752","Mdl":"Boeing 757-200","Man":"Boeing","CNum":"25155","Op":"Donald Trump","Sqk":"3625","Help":false,"Vsi":-704,"VsiT":0,"Dst":12.3,"Brng":147.0,"WTC":2,"Species":1,"Engines":"2","EngType":3,"EngMount":0,"Mil":false,"Cou":"United States","HasPic":true,"PicX":860,"PicY":400,"Interested":true,"FlightsCount":0,"Gnd":false,"SpdTyp":0,"CallSus":false,"Tag":"CLEB","Trt":2,"Year":"1991"}],"totalAc":3150,"lastDv":"636081231474300844","shtTrlSec":30,"stm":1472538725841}
thanks!