{
"abc": null,
"def": 9
}
I have JSON data which looks like this. If not for null (without quotes as a string), I could have used ast
module's literal_eval
to convert the above to a dictionary.
A dictionary in Python cannot have null
as value but can have "null"
as a value. How do I convert the above to a dictionary that Python recognizes?