Hi all
I am trying to parse some data that is, as far as I can guess, in JSON format
Data is at http://www.ebi.ac.uk/pdbe/api/pdb/entry/molecules/2k8v
I am trying to do
f = load("http://www.ebi.ac.uk/pdbe/api/pdb/entry/molecules/2k8v")
and "print f" shows it
{"2k8v":[{
"entity_id":1,
"weight":17801.109,
etc
Now the question: how to extract parts of the data, like the value for the
"weight" key?
I tried things like
print f["weight"]
print f["2k8v"]["weight"]
print f["2k8v"][0]["weight"]
print f["2k8v"][1]["weight"]
without success
Any help is appreciated
·
Dr. Angel Herráez
Biochemistry and Molecular Biology,
Dept. of Systems Biology, University of Alcalá
E-28871 Alcalá de Henares (Madrid), Spain
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users