Path: csiph.com!usenet.pasdenom.info!news.etla.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed1.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.025 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; 'tutorial': 0.03; 'cpython': 0.05; 'json': 0.07; 'modifying': 0.07; 'module)': 0.09; 'windows': 0.15; 'dictionaries': 0.16; 'dictionary.': 0.16; 'isnt': 0.16; 'subject:Accessing': 0.16; 'subject:beginner': 0.16; 'url:json': 0.16; 'wrote:': 0.18; 'code.': 0.18; 'working.': 0.19; 'print': 0.22; 'header:User-Agent:1': 0.23; '(or': 0.24; 'header :In-Reply-To:1': 0.27; 'subject:) ': 0.29; 'andrew': 0.30; 'code': 0.31; 'regular': 0.32; 'url:python': 0.33; 'subject: (': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'object,': 0.36; 'subject:data': 0.36; 'url:org': 0.36; 'message- id:@gmail.com': 0.38; 'url:library': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'read': 0.60; 'simply': 0.61; "you're": 0.61; 'more': 0.64; 'dont': 0.67; 'subject:there': 0.68; '9.1': 0.84; 'everything.': 0.84; 'freebsd': 0.84; 'subject:think': 0.84; 'working,': 0.84; 'thoroughly': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; bh=XYbCOTjuQX1sji/cH9ql54hnKs+pURXMNyWqyWgD5DM=; b=T7FkEHMAZrQIIairKY7djsgbx24bdPnvOJyA3OVgbh5SeUEfqPVFT5yv69GpRM/Kgg Ikj5vesalQbQqIVBiqhpZk7nLDg2JO1ZqmeQsQgHgGJVr3n3WUK2eqDotYqUZ0Op/Y1W oKw2+9AGSm4DRCduIhzF7UUIE263xNvcQNaGVaulicV83Cygz21rJA1S63ona+dd9mkg kiZHRJvRaCf/FoF4YScmRDlvQt/boowmhJICVCK7l04je0aVCKjTgi56nr4ieQnJV3uq 04gnVOlBDCvAJKg01QZJOK3hXN+rFcJfDLRrCarfhhlL1H8DxYTkNpPIfSuKPiJ8E20x y3RA== X-Received: by 10.42.164.193 with SMTP id h1mr10409898icy.56.1369331996160; Thu, 23 May 2013 10:59:56 -0700 (PDT) Date: Thu, 23 May 2013 12:59:54 -0500 From: Andrew Berg User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 MIME-Version: 1.0 To: "comp.lang.python" Subject: Re: Accessing Json data (I think I am nearly there) complete beginner References: <509030d9-08fd-40b2-8a89-cd4ecfad7a1a@googlegroups.com> In-Reply-To: X-Enigmail-Version: 1.5.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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: 7 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1369331999 news.xs4all.nl 15919 [2001:888:2000:d::a6]:51969 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:45828 On 2013.05.23 11:58, Andrew Edwards-Adams wrote: > If there was a trackback/debug I might know where to look, but its not yielding errors, its simply yielding nothing. What i dont know, is if it is the code that isnt working, or what I am inputting in the " print text1['rows'][0]['id']" that isnt working. If fed a valid JSON object, json.loads() will return a regular dictionary. You can print (or pretty print with the pprint module) text1 to see everything. If you're not familiar with dictionaries and lists, thoroughly read the tutorial before writing or modifying any more code. http://docs.python.org/2/library/json.html#json.loads -- CPython 3.3.2 | Windows NT 6.2.9200 / FreeBSD 9.1