skip to Main Content

Python does not tell JSON from string

I have a json file like this: "["SOMEURL","SOMEURL","SOMEURL","SOMEURL"]" and I need to put these values to the array but such code as fileObject = open("doc_1.json", "r") jsonContent = fileObject.read() aList = json.loads(jsonContent) print(aList) opens it as a simple string, so…

VIEW QUESTION
Back To Top
Search