how to print json data
<p>I have following json file and python code and i need output example...</p>

<p><strong>json file</strong></p>

<pre><code>{"b": [{"1": "add"},{"2": "act"}],
"p": [{"add": "added"},{"act": "acted"}],
"pp": [{"add": "added"},{"act": "acted"}],
"s": [{"add": "adds"},{"act": "acts"}],
"ing": [{"add": "adding"},{"act": "acting"}]}
</code></pre>

<p><strong>python</strong></p>

<pre><code>import json
data = json.load(open('jsonfile.json'))
#print data
</code></pre>

<p><strong>out put example</strong></p>

<pre><code>&gt;&gt; b
&gt;&gt; p
&gt;&gt; pp
&gt;&gt; s
&gt;&gt; ing
</code></pre>

<p>any ideas how to do that?</p>

<p>This doesn't have anything to do with JSON. You have a dictionary, and you want to print the keys, which you can do with <code>data.keys()</code>.</p>

python json python-3.x