I am trying to run this simple program on python:
import json
json.loads('["foo", {"bar":["baz", null, 1.0, 2]}]')
But it is giving an error like this:
Traceback (most recent call last):
File "jsonURL.py", line 2, in <module>
json.loads('["foo", {"bar":["baz", null, 1.0, 2]}]')
AttributeError: 'module' object has no attribute 'loads'
I know the program is correct what am i missing here?
json.pyin your project?