Using Jmol August 25: Conversion to JSON seems to scramble the order of keys in the associative array. In the examples below, notice how the keys ABC become ACB when formatted as JSON; and ABCD -> ADCB. Is this a bug?
$ load =1bsz HYDROLASE 01-SEP-98 1BSZ PEPTIDE DEFORMYLASE AS FE2+ CONTAINING FORM (NATIVE) IN COMPLE INHIBITOR POLYETHYLENE GLYCOL found biomolecule 1: A found biomolecule 2: B found biomolecule 3: C $ x = {altloc!=''}.altloc.all.pivot $ print x { "A" : 74 "B" : 74 "C" : 10 } $ print x.format("JSON") { "A": 74,"C": 10,"B": 74 } -------------------------------- $ load =1al4 ANTIBIOTIC 11-JUN-97 1AL4 GRAMICIDIN D FROM BACILLUS BREVIS (N-PROPANOL SOLVATE) found biomolecule 1: A, B $ x = {altloc!=''}.altloc.all.pivot $ print x { "A" : 238 "B" : 244 "C" : 34 "D" : 12 } $ print x.format("JSON") { "A": 238,"D": 12,"C": 34,"B": 244 } $ -------------------------------- Thanks, Eric ------------------------------------------------------------------------------ _______________________________________________ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users