Convert Google results object (pure js) to Python object
        Posted  
        
            by colwilson
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by colwilson
        
        
        
        Published on 2010-04-29T08:29:50Z
        Indexed on 
            2010/04/29
            8:47 UTC
        
        
        Read the original article
        Hit count: 296
        
So I'm trying to use Google Map suggest API to request place name suggestions. Unfortunately I can't find the docs for this bit.
Here is an example URI:
http://maps.google.com/maps/suggest?q=lon&cp=3&ll=55.0,-3.5&spn=11.9,1.2&hl=en&gl=uk&v=2
which returns:
{suggestion:[{query:"London",...
I want to use this in python (2.5). Now in proper JSON there would have been quotations around the keys like so:
{"suggestion":[{"query":"London",...
and I could have used simplejson or something, but as it is I'm a bit stuck.
There are two possible solutions here; either I can get to the API code and find an option to return proper JSON, or I do that in python.
Any ideas please.
© Stack Overflow or respective owner