Path: csiph.com!usenet.pasdenom.info!news.albasani.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.013 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'json': 0.07; 'omit': 0.07; 'seemed': 0.07; 'subject:question': 0.08; 'facts': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'stored': 0.10; 'created.': 0.16; 'possible?': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'string,': 0.17; 'subject:need': 0.17; 'define': 0.20; 'properties': 0.24; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'question': 0.27; 'header:X -Complaints-To:1': 0.28; 'maybe': 0.29; 'related': 0.30; 'e.g.': 0.30; 'lists': 0.31; '(and': 0.32; 'file': 0.32; 'received:84': 0.32; 'could': 0.32; 'achieving': 0.33; 'problem': 0.33; 'to:addr :python-list': 0.33; 'hi,': 0.33; 'received:org': 0.36; 'too': 0.36; 'data': 0.37; 'subject:: ': 0.38; 'files': 0.38; 'some': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'easy': 0.60; 'john': 0.60; 'our': 0.65; 'subject': 0.66; 'enjoy': 0.67; '"too': 0.84; 'dict,': 0.84; 'email addr:yahoo.co.uk': 0.84; 'kennedy': 0.84; 'subject:Basic': 0.84; 'quotation': 0.93; 'comfort': 0.97 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Roel Schroeven Subject: Re: Basic JSON question: Do I really need the quotes Date: Fri, 12 Oct 2012 19:27:05 +0200 References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: d54c6d210.access.telenet.be User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 21 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1350062835 news.xs4all.nl 6845 [2001:888:2000:d::a6]:43132 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:31169 moogyd@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@roelschroeven.net