Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!ecngs!feeder2.ecngs.de!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'json': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:string': 0.09; 'subject:python': 0.11; 'received:141': 0.13; 'expects': 0.16; 'literal.': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject: \n ': 0.16; 'subject:dictionaries': 0.16; 'subject:key': 0.16; 'subject:non': 0.16; 'work.': 0.23; 'cheers': 0.24; 'paul': 0.24; 'header:In- Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'header:X -Complaints-To:1': 0.28; 'function': 0.30; 'expect': 0.31; 'subject:data': 0.33; 'to:addr:python-list': 0.33; 'thanks': 0.34; "won't": 0.35; 'received:org': 0.36; 'but': 0.36; 'does': 0.37; 'option': 0.37; 'subject:: ': 0.38; 'object': 0.38; 'to:addr:python.org': 0.39; 'subject:-': 0.40; 'header:Received:5': 0.40; 'your': 0.60; 'solve': 0.62; 'reply,': 0.93 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: =?UTF-8?B?UGF1bCBLw7ZsbGU=?= Subject: Re: Constructing JSON data structures from non-string key python dictionaries Date: Thu, 22 Nov 2012 09:53:57 +0100 References: <737ef2a9-f2e0-43fe-86a0-199940be2b69@googlegroups.com> <448f6f44-2387-4a2d-9131-084b3585443e@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: 141.43.79.246 User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:16.0) Gecko/20121026 Thunderbird/16.0.2 In-Reply-To: <448f6f44-2387-4a2d-9131-084b3585443e@googlegroups.com> 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: 11 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1353574471 news.xs4all.nl 6891 [2001:888:2000:d::a6]:52352 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:33793 Am 21.11.2012 17:04, schrieb hfolch@gmail.com: > Thanks for your reply, but the javascript function expects option > names to be unquoted, otherwise it won't work. Others have shown you how to solve this, but I would like to note that the function does NOT expect JSON but a simple javascript object literal. cheers Paul