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 -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -