How to fix error "raise JSONDecodeError("Extra data", s, end) json.decoder.JSONDecodeError: Extra data: line 1 column 8 (char 7)"

Question:

I’m trying to read data from json file by following code but i get error, any idea how to fix that?

file= open("C:\Users\User\Desktop\Post.json",'r')
json_in=file.read()
request_json=json.loads(json_in)

print(request_json)

Json file

 "name": "Test",
 "job": "Programer" 
Asked By: Moshe

||

Answers:

try this

file = open("C:\Users\User\Desktop\Post.json",'r')
request_json = json.load(file)
Answered By: Delton
Categories: questions Tags: , , , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.