@@ -359,37 +359,41 @@ msgid ""
359359"kwarg; otherwise :class:`JSONDecoder` is used. Additional keyword arguments"
360360" will be passed to the constructor of the class."
361361msgstr ""
362+ "要使用自定义的 :class:`JSONDecoder` 子类,用 ``cls`` 指定他;否则使用 :class:`JSONDecoder` "
363+ "。额外的关键词参数会通过类的构造函数传递。"
362364
363365#: /home/travis/build/python/cpython-doc-catalog/Doc/library/json.rst:270
364366#: /home/travis/build/python/cpython-doc-catalog/Doc/library/json.rst:289
365367#: /home/travis/build/python/cpython-doc-catalog/Doc/library/json.rst:368
366368msgid ""
367369"If the data being deserialized is not a valid JSON document, a "
368370":exc:`JSONDecodeError` will be raised."
369- msgstr ""
371+ msgstr "如果反序列化的数据不是有效 JSON 文档,抛出 :exc:`JSONDecodeError` 错误。 "
370372
371373#: /home/travis/build/python/cpython-doc-catalog/Doc/library/json.rst:276
372374msgid ""
373375"*fp* can now be a :term:`binary file`. The input encoding should be UTF-8, "
374376"UTF-16 or UTF-32."
375- msgstr ""
377+ msgstr "*fp* 现在可以是 :term:`binary file` 。输入编码应当是 UTF-8 , UTF-16 或者 UTF-32 。 "
376378
377379#: /home/travis/build/python/cpython-doc-catalog/Doc/library/json.rst:282
378380msgid ""
379381"Deserialize *s* (a :class:`str`, :class:`bytes` or :class:`bytearray` "
380382"instance containing a JSON document) to a Python object using this "
381383":ref:`conversion table <json-to-py-table>`."
382384msgstr ""
385+ "使用这个 :ref:`conversion table <json-to-py-table>` 表来反序列化 *s* ( :class:`str` , "
386+ ":class:`bytes` 或者 :class:`bytearray` 实例包含 JSON 文档)为 Python 对象。"
383387
384388#: /home/travis/build/python/cpython-doc-catalog/Doc/library/json.rst:286
385389msgid ""
386390"The other arguments have the same meaning as in :func:`load`, except "
387391"*encoding* which is ignored and deprecated since Python 3.1."
388- msgstr ""
392+ msgstr "除了*encoding*被忽略和弃用自 Python 3.1 以来,其他参数的含义与 :func:`load` 中相同。 "
389393
390394#: /home/travis/build/python/cpython-doc-catalog/Doc/library/json.rst:294
391395msgid "*encoding* keyword argument."
392- msgstr ""
396+ msgstr "*encoding* 关键字参数。 "
393397
394398#: /home/travis/build/python/cpython-doc-catalog/Doc/library/json.rst:295
395399msgid ""
@@ -509,6 +513,8 @@ msgid ""
509513":class:`dict`. This can be used to provide custom deserializations (e.g. to"
510514" support JSON-RPC class hinting)."
511515msgstr ""
516+ "*object_hook* ,如果指定,会被每个解码的 JSON 对象的结果调用,并且返回值会替代给定 :class:`dict` "
517+ "。它可被用于提供自定义反序列化(比如去支持 JSON-RPC 类的暗示)。"
512518
513519#: /home/travis/build/python/cpython-doc-catalog/Doc/library/json.rst:339
514520msgid ""
0 commit comments