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

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

python - Error: Unresolved reference 'selenium' What is the reason? -

asp.net ajax - Jquery scroll to element just goes to top of page -