此响应中存在语法错误(google api响应),我想从此响应中获取Points的数据。我怎么才能得到它。
{
tooltipHtml:" (9.6 km / 18 mins)",
polylines:[
{
id:"route0",
points:"_y}oBwxiaM{CdCaAh@}IvAgAB_BOqLgBgCXqFhB_GdCoAnAcGlHuAjA_Bb@oBAy@MsVqI{DgBgC{AmE{EqA{Be@oCLcDvDaRPeDGiBY_Bi@mAyAiB{@g@aC_AyT{FyCcBqMoIqQ{I??URSCIMJ]UuASuGN}THiCd@_GWyGiB}GmCyPwAwLqCqq@}CqMsBkMGiFMOWwDIwDg@mC]}@??k@s@oBD??yDvAqPpKeEfBcJdGoD~@sBAqAYcBm@mBY??`@g@l@[??RyAQoA",
levels:"B??@???@?@??@??A?@??@???@???@??@??BB?????????@???????????BB?BB???@????BB?BB?B",
numLevels:4,
zoomFactor:16
}
]
}
http://maps.google.com/maps?output=dragdir&saddr=18.507853,73.783338&daddr=18.545277,73.803988是api我正在使用的。
答案 0 :(得分:0)
如果您需要json数据
,请使用此NSJSONSerialization
+ (NSData *)dataWithJSONObject:(id)obj options:(NSJSONWritingOptions)opt
error:(NSError **)error