Thanks for the answer but if possible, I'd appreciate some more details, I understand that this is not something you consider as a defect, can you please elaborate on why you say that? is there a way to stringify this correctly and I'm just not using it? my workaround at the moment is some search and replace method that runs on the object on the server side but it seems like something is being done wrong, either on my end or in the implementation, so please elaborate in your response. Tia, Elad.
On Mar 24, 5:12 pm, Ben Appleton <[email protected]> wrote: > This is working as intended. > > On 25 Mar 2010 08:02, "Sheepz" <[email protected]> wrote: > > Hi All, I'm using Json to parse the gecode result and pass it to my > java code, where I rebuild it. > This it my JS code for parsing the result to a string: > var myJSONText = JSON.stringify(results[0], null); > it returns the following for a query about Germany: > "[ > { > "types":["country","political"], > "formatted_address":"Deutschland", > "address_components": > [{"long_name":"Deutschland","short_name":"DE","types": > ["country","political"]}], > "geometry":{ > "location":{"b":51.165691,"c":10.451526}, > "location_type":"APPROXIMATE", > "viewport":{"c":{"b":47.4430843,"c":54.6103698},"b":{"d":180,"c": > 2.255725,"b":18.647327}}, > "bounds":{"c":{"b":47.270127,"c":55.0815},"b":{"d":180,"c": > 5.8663566,"b":15.0418536}}}} > > ]" > > Note the location, viewport and bounds. > These are not proper json objects and are therefore parsed in a way > that cannot be used to reconstruct the object on the java side. > The objects in question are the LatLng and the LatLngBounds objects. > Is this a bug that's going to be fixed soon? > Am i missing something in the way i parse it? > > -- > You received this message because you are subscribed to the Google Groups > "Google Maps JavaScript API v3" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<google-maps-js-api-v3%[email protected]> > . > For more options, visit this group > athttp://groups.google.com/group/google-maps-js-api-v3?hl=en. -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" 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/google-maps-js-api-v3?hl=en.
