I have a JSON string as a result of a query operation . I assign the result to a string literal and then try to read the string.
I get the below error.
SyntaxError: EOL while scanning string literal
I get the result in the below format from a query operation with \n
str = {"start": 0,
"time": "2015-Mar-15 17:04:33.197042 ::setup Initializing",
"type": "solar",}
import json
json.loads(str)
Should I convert it into a docstring? I'm using python 3.4
strshould be a string. What istype(str)? Also, don't name things after built-in types or functions.