您好,我正在尝试从 Google Maps API 解析此结果,
{tooltipHtml:" (10.6 km / 15 mins)",polylines:[{id:"route0",points:"}psuIqmvu@xNnCnAHzBMvBo@??fCmA??MmDEqIHkGViHlHq`A??}DsAuAs@sAeAMAkZwY}OcP{OkOgCiCQ[cBuA??kIuE_S_KeEmDwA{B{EyIyDmHuFgL_CaIYuA?W[mCHc@??p@wANgA?oAIeAUeAKU_Aw@eAJo@z@[B{Ac@QDcVaGsAQyEM{DZaB\\wEbBU?mIrDoBb@yBRUJgKAsCe@mCoAiTkNyBqBkEkFi@a@sCqAgK_CqBMaKBoDGibAmNSOoCc@sIiAQFgD[yH[UIi@?sB\\yA@a@K??[fB??{TfIgBbAwFzD??XjBVX?X",levels:"B???BBBB???@BB???@?????BB??@???@????BB??@???@???????@?????@??@?????@?@??????????????BBBB??BB??B",numLevels:4,zoomFactor:16}]}
但是 Restkit 不会接受编码点并给我这个错误
E restkit.network:RKResponse.m:289 Unable to parse response body: Unexpected token, wanted '{', '}', '[', ']', ',', ':', 'true', 'false', 'null', '"STRING"', 'NUMBER'.
我的代码如下所示来解析结果
- (void)request:(RKRequest*)request didLoadResponse:(RKResponse*)response {
NSError *error = nil;
NSDictionary *parsedResponse = [response parsedBody:&error];