Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!bcyclone04.am1.xlned.com!bcyclone04.am1.xlned.com!newsfeed.xs4all.nl!newsfeed1a.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.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'json': 0.07; 'subject:file': 0.07; 'received:internal': 0.09; 'subject:using': 0.09; 'subject:python': 0.14; 'wed,': 0.15; 'message- id:@webmail.messagingengine.com': 0.16; 'received:10.202': 0.16; 'received:10.202.2': 0.16; 'received:10.202.2.212': 0.16; 'received:66.111': 0.16; 'received:66.111.4': 0.16; 'received:messagingengine.com': 0.16; 'wrote:': 0.16; 'string,': 0.18; 'parser': 0.22; 'header:In-Reply-To:1': 0.24; "doesn't": 0.28; 'structure': 0.32; 'this?': 0.34; 'to:addr:python-list': 0.35; 'received:10': 0.37; 'subject:: ': 0.37; 'received:66': 0.38; 'to:addr:python.org': 0.39; 'data': 0.40; 'your': 0.60; "you'll": 0.61; 'from:no real name:2**0': 0.61; 'header:Message- Id:1': 0.62; 'different': 0.64 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.us; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=HQcRzO9BUYYTQa87xFw6FClzugs=; b=R6hr8Z gvoPHjVkEH6diYUkAmtS4Ip0VLHrBh5hApmLyISCyVEyS+lu6X3Q6r/k+kmxr2K0 zMPvCpLe7nBo5+taQvm9NnDITLDZL+WwWxyZl8Ea2KKKjleb2I9eJ+XHS5+r3Gs2 R49OrQTgNawddKmea2nGX0BnzX/bjocNhGPS8= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=HQcRzO9BUYYTQa8 7xFw6FClzugs=; b=LhP7O7drO8/1jhXPvu6J6A+k4qEt/8vSQREDpMymk2HVpPN BOpfgx8nLFZQV1gR1+RtniDx8vhYEQGQku/I02vQfaVs/PASvi/CkmRegmrZXn+3 jxevTBNJ/mCnDC/NLqLuNj17t/KGbTrzjaH93RU8ATf6p4uwVA1m5gSlahIw= X-Sasl-Enc: +jYwD3N641PTs1ApuqKYoGPc7UPpf1hXIlFYYv/lXJ2t 1432768010 From: random832@fastmail.us To: python-list@python.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain X-Mailer: MessagingEngine.com Webmail Interface - ajax-073992ec Subject: Re: Decoding JSON file using python Date: Wed, 27 May 2015 19:06:50 -0400 In-Reply-To: <11dbf982-efc1-4ef0-b286-e3d08ba5030e@googlegroups.com> References: <11dbf982-efc1-4ef0-b286-e3d08ba5030e@googlegroups.com> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ 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: 9 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1432768013 news.xs4all.nl 2882 [2001:888:2000:d::a6]:54401 X-Complaints-To: abuse@xs4all.nl X-Received-Bytes: 3800 X-Received-Body-CRC: 1221178158 Xref: csiph.com comp.lang.python:91330 On Wed, May 27, 2015, at 18:23, Karthik Sharma wrote: > The JSON structure is valid as shown by http://jsonlint.com/ > I want to be able to access the different fields inside `data` such as > `severity`, `subject` and also fields inside `tdetails` such as `CPUs` > and `Product`. How do I do this? your data object is a string, it doesn't have anything inside it. if you want it to be a json object you'll need to actually use the json parser on it.