diff --git a/Doc/library/json.rst b/Doc/library/json.rst --- a/Doc/library/json.rst +++ b/Doc/library/json.rst @@ -230,16 +230,18 @@ Basic Usage *encoding* which is ignored and deprecated. Encoders and decoders --------------------- .. class:: JSONDecoder(object_hook=None, parse_float=None, parse_int=None, parse_constant=None, strict=True, object_pairs_hook=None) + **Source code:** :source:`Lib/json/decoder.py` + Simple JSON decoder. Performs the following translations in decoding by default: +---------------+-------------------+ | JSON | Python | +===============+===================+ | object | dict | @@ -311,16 +313,18 @@ Encoders and decoders and the index in *s* where the document ended. This can be used to decode a JSON document from a string that may have extraneous data at the end. .. class:: JSONEncoder(skipkeys=False, ensure_ascii=True, check_circular=True, allow_nan=True, sort_keys=False, indent=None, separators=None, default=None) + **Source code:** :source:`Lib/json/encoder.py` + Extensible JSON encoder for Python data structures. Supports the following objects and types by default: +-------------------+---------------+ | Python | JSON | +===================+===============+ | dict | object |