Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!newsfeed.datemas.de!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.009 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'received:209.85.223': 0.03; 'json': 0.07; 'omit': 0.07; 'seemed': 0.07; 'subject:question': 0.08; '8bit%:30': 0.09; 'specific.': 0.09; 'stored': 0.10; 'created.': 0.16; 'gpg': 0.16; 'oct': 0.16; 'reason.': 0.16; 'wrote:': 0.17; 'string,': 0.17; 'subject:need': 0.17; 'define': 0.20; 'supposed': 0.21; 'properties': 0.24; 'header:In-Reply-To:1': 0.25; 'rules': 0.27; 'question': 0.27; 'message-id:@mail.gmail.com': 0.27; 'related': 0.30; 'e.g.': 0.30; 'fri,': 0.30; 'lists': 0.31; '(and': 0.32; 'file': 0.32; 'achieving': 0.33; 'to:addr:python-list': 0.33; 'hi,': 0.33; 'received:google.com': 0.34; 'pm,': 0.35; 'received:209.85': 0.35; 'but': 0.36; '12,': 0.36; 'received:209': 0.37; '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; 'more': 0.63; 'configparser': 0.84; 'dict,': 0.84; 'humans.': 0.84; 'ini,': 0.84; 'subject:Basic': 0.84; 'quotation': 0.93; 'url:tk': 0.93 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=vKUtChoKXT1X3GW1p0IX0gCD6LwwJB1z2aePFK7v4qQ=; b=s0agBo12blGVa/atbk1ooR24yTb3LZtOXtLByfKsYClQg6mN13d4cXXnWHDue60+bw jOYnJq9kauuukdHcAceJ5aUxg0+yD3kQ2jPiVPIh7Yn4BKno6mLG6AYhd6uBLE/kzjF+ 6qlJQe6qHF6HYGRT2KJXpnJPt4cDDA3UoJr32Q1AmRxCSZprFczvGgQ+FGNh2r84RbeD zSBTscnDITyVKzIABv3CgJRGyhlvnGfRCAabDD2fCaTugztAm71qPx+8ruG7km7clZd+ pgsdT3yGAp/xpcfFnTHsXVWSL73iHIByNPVmanpNOqYqjArAMx+cuhedV9bRGIeQ+/lg H08A== MIME-Version: 1.0 In-Reply-To: References: Date: Fri, 12 Oct 2012 16:14:35 +0200 Subject: Re: Basic JSON question: Do I really need the quotes From: Kwpolska To: python-list@python.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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: 23 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1350051279 news.xs4all.nl 6854 [2001:888:2000:d::a6]:35953 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:31163 On Fri, Oct 12, 2012 at 4:09 PM, wrote: > Hi, > I need to define some configuration in a file that will be manually creat= ed. > Internally, the data will be stored as a dict, which contains various pro= perties 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, h= ow can I omit the quotation marks? Nope. JSON has those rules for a reason. You need to be specific. A more =E2=80=9Chuman-friendly=E2=80=9D format is the one used by ConfigParse= r (close to INI, but not quite). Also, JSON is supposed to be generated by computers, not humans. --=20 Kwpolska stop html mail | always bottom-post www.asciiribbon.org | www.netmeister.org/news/learn2quote.html GPG KEY: 5EAAEA16