خرید بک لینک

Vote count: 0

I have file with Json format:

{"uid": 2, "user": 1}
{"uid": 2, "user": 1}
{"uid": 2, "user": 1}

When i use following code, it show an error:

    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)

How to convert content of my file into list of dictionary ? Thank you

asked 28 secs ago

برچسب: python 3 how to print on the same line,python 3 how to use pip,python 3 how to print,python 3 how to compare strings,python 3 how to print without newline,python 3 how to install modules,python 3 how to import module,python 3 how to open a file,python 3 how to run a script,python 3 how to convert bytes to string, نویسنده: استخدام کار تاريخ: دوشنبه 15 شهريور 1395 ساعت: 17:14

صفحه بندی