Python json.loads shows ValueError: Extra data - Stack Overflow
JSONDecodeError: Extra data: line 2 column 1 The MongoDB JSON dump has one object per line, so what worked for me is: import json data = [json.loads (line) for line in open ('data.json', 'r')] Share Follow edited Dec 12, 2019 at 18:49 answered Aug 13, 2018 at 21:19 Nic Scozzaro 6,021 2 39 45 2