Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

igorladessa

macrumors newbie
Original poster
Dec 10, 2012
6
0
I'm trying to get the directions using google directions but I'm getting this error :

Error Domain=org.brautaset.JSON.ErrorDomain Code=3 \"Unrecognised leading character (41)\

Here is the Json
Code:
loadDirections('Avenida Paulista', 'Rua Augusta', { 'locale': 'en', travelMode: G_TRAVEL_MODE_WALKING, avoidHighways: false, getPolyline: true, getSteps: true, preserveViewport: false})

Whats is wrong? Whats Unrecognised leading character (41) mean?
 

dejo

Moderator emeritus
Sep 2, 2004
15,982
452
The Centennial State
Doesn't look like you are using valid JSON.

At first guess, I would suspect your single-quote usage; strings are wrapped in double-quotes. But it could be something else as well.

Is this JSON you're sending to Google or something you're getting back?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.