how to read jquery data with python? -
i have big jquery data following format.
jquery({locations: [,…], markerscontent: [,…], sidebarcontent: [,…]});
is there way context of first part (locations) python? tried unsuccessfully different commands in pyquery. can suggest solution?
thanks
you can iterate through json object. or if have single json inside access
your_variable['locations'].
if have more 1 json object inside variable, can iterate like,
for key, value in your_variable.items(): print(key,value)
in way, can access keys , values. if have list inside value, can iterate through extract values.
Comments
Post a Comment