need help to read a file in python
<p>I am new to python but I have learned lots of stuff, but I found difficulty to read a JSON file. I need to read it in a way to access a particular data in this file. The file contain a data as follow: </p>

<pre><code>[
    29723,
    5426523,
    "this book need to be printed",
    "http://amzn.to/U60TaF"
][
    29723,
    807242528,
    "ready for shipping",
    "http://nblo.gs/HNpn"
]
</code></pre>

<p>my code is: </p>

<pre><code>FI = open(file_name, 'r')
for line in FI:
    tweet = json.loads(line)
    print(tweet)
</code></pre>

<p>The output is only the last line which is the link, I don't know way. </p>

<p>Try</p>

<pre><code>data = json.load(open(file_name))
</code></pre>

python