Basic JSON question: Do I really need the quotes

Roel Schroeven roel at roelschroeven.net
Fri Oct 12 13:27:05 EDT 2012


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
> Anyway, 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?

-- 
"Too often we hold fast to the cliches of our forebears. We subject all
facts to a prefabricated set of interpretations. Too often we enjoy the
comfort of opinion without the discomfort of thought."
         -- John F Kennedy

roel at roelschroeven.net




More information about the Python-list mailing list