Basic JSON question: Do I really need the quotes

Adam Tauno Williams awilliam at whitemice.org
Fri Oct 12 13:52:42 EDT 2012


On Fri, 2012-10-12 at 19:27 +0200, Roel Schroeven wrote:
> moogyd at yahoo.co.uk schreef:
> > Hi,
> > I need to define some configuration in a file that will be manually created.
> > Internally, the data will be stored as a dict, which contains various properties related to a design
> > e.g. Design Name, dependencies, lists of files (and associated libraries).
> > json seemed a quick an easy way of achieving this
> > Ayway, in simple terms my question - if I know everything is a string, how can I omit the quotation marks?
> > The problem is that I don't want to make users have to type redundant characters.
> > Is it possible?
> Not in JSON. Maybe you could try YAML?

If you want a human-readable human-editable markup for data structures I
strongly encourage you to look at YAML.  JSON is not wetware friendly.




More information about the Python-list mailing list