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

ios - Pass NSDictionary from Javascript to Objective-c in JavascriptCore -

java - How to handle special characters while unmarshalling xml in JAXB -

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