Python 3: How to read file json into list of dictionary?
<p>I have file with Json format:</p>

<pre><code>{"uid": 2, "user": 1}
{"uid": 2, "user": 1}
{"uid": 2, "user": 1}
</code></pre>

<p>When i use following code, it show an error:</p>

<pre><code>    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 2 column 1 (char 22)

with open('E:/list.txt','r') as target:
        my_list = json.load(target)
</code></pre>

<p>How to convert content of my file into list of dictionary ? Thank you  </p>

<p>Your file is not a <code>JSON</code>, its a list of <code>JSON</code>. </p>

<pre><code>with open(filec , 'r') as f:
    list = list(map(json.loads, f))
</code></pre>

python json dictionary