loads

loads(text: str)

Parses JSON text, refusing what the specification refuses: a duplicate key in an object, NaN or Infinity, a lone surrogate.

>>> loads('{"x": [1, 2.5, "a", null]}')
{'x': [1, 2.5, 'a', None]}

Raises

Name Type Description
OmkJsonError if text is not JSON, or is JSON the specification refuses.