I noticed that on this page:
http://chemapps.stolaf.edu/jmol/docs/#getproperty of JMol scripting
documentation, they give an example file for the output of getProperty
bondInfo: http://chemapps.stolaf.edu/jmol/docs/misc/bondInfo.txt

This file looks like JSON, i.e.:

bondInfo=new Array()
bondInfo[0]=new Array()
bondInfo[0].radius=0.15
bondInfo[0].order=1
bondInfo[0].atom2=new Array()
bondInfo[0].atom2.sym="C"
bondInfo[0].atom2.atomno=2
bondInfo[0].atom2._ipt=1

...

However, when I run getProperty bondInfo, I get output that looks like:

bondInfo        *List[1]        
bondInfo[1].colix       0
bondInfo[1].visible     true
bondInfo[1].order       1.0
bondInfo[1].length_Ang  1.5895603
bondInfo[1].atom2.sym   "Si"
bondInfo[1].atom2.atomno        1
bondInfo[1].atom2.atomIndex     0

This is easy enough to parse, but it would be highly convenient to
just get JSON back so I don't have to do any parsing.

Is this possible?


-John

PS. Mr. Hanson, thanks for all the help on the last issue, the new
JmolData.jar is working beautifully.
------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to