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>For the sake of completeness:</p>

<pre><code>d = {'p': 'pstuff', 'pp': 'ppstuff', 'b': 'bstuff', 's': 'sstuff'}
print('\n'.join(d))
</code></pre>

<p>Works in any version of Python. If you care about order:</p>

<pre><code>print('\n'.join(sorted(d)))
</code></pre>

<p>Though in all honesty, I'd probably do Jim's approach:</p>

<pre><code>print(*d, sep='\n'))
</code></pre>

python json python-3.x