[Tutor] 'json' should probably be the response to 'can we use eval to parse { ... }?'

Danny Yoo dyoo at hkn.eecs.berkeley.edu
Sun Oct 22 06:55:11 CEST 2006


Hi everyone,


I ran across the JSON data format today:

     http://json.org/

with a nice Python implementation in 'simplejson'.

     http://undefined.org/python/#simple_json

The JSON format matches very closely with Python data structure syntax. 
So the next time someone asks if they can use eval() to turn a string into 
a data structure, let's point them to simplejson.


Best of wishes!


More information about the Tutor mailing list