Lines Matching refs:cls
121 allow_nan=True, cls=None, indent=None, separators=None,
161 the ``cls`` kwarg; otherwise ``JSONEncoder`` is used.
167 cls is None and indent is None and separators is None and
171 if cls is None:
172 cls = JSONEncoder
173 iterable = cls(skipkeys=skipkeys, ensure_ascii=ensure_ascii,
184 allow_nan=True, cls=None, indent=None, separators=None,
223 the ``cls`` kwarg; otherwise ``JSONEncoder`` is used.
229 cls is None and indent is None and separators is None and
232 if cls is None:
233 cls = JSONEncoder
234 return cls(
274 def load(fp, *, cls=None, object_hook=None, parse_float=None,
290 To use a custom ``JSONDecoder`` subclass, specify it with the ``cls``
294 cls=cls, object_hook=object_hook,
299 def loads(s, *, cls=None, object_hook=None, parse_float=None,
330 To use a custom ``JSONDecoder`` subclass, specify it with the ``cls``
343 if (cls is None and object_hook is None and
347 if cls is None:
348 cls = JSONDecoder
359 return cls(**kw).decode(s)