Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
d5cdc94a
Kaydet (Commit)
d5cdc94a
authored
Mar 29, 2013
tarafından
Ezio Melotti
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#17438: add links to the conversion tables in dump(s)/load(s).
üst
035ecbe2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
6 deletions
+14
-6
json.rst
Doc/library/json.rst
+14
-6
No files found.
Doc/library/json.rst
Dosyayı görüntüle @
d5cdc94a
...
@@ -125,7 +125,8 @@ Basic Usage
...
@@ -125,7 +125,8 @@ Basic Usage
default=None, sort_keys=False, **kw)
default=None, sort_keys=False, **kw)
Serialize *obj* as a JSON formatted stream to *fp* (a ``.write()``-supporting
Serialize *obj* as a JSON formatted stream to *fp* (a ``.write()``-supporting
:term:`file-like object`).
:term:`file-like object`) using this :ref:`conversion table
<py-to-json-table>`.
If *skipkeys* is ``True`` (default: ``False``), then dict keys that are not
If *skipkeys* is ``True`` (default: ``False``), then dict keys that are not
of a basic type (:class:`str`, :class:`unicode`, :class:`int`, :class:`long`,
of a basic type (:class:`str`, :class:`unicode`, :class:`int`, :class:`long`,
...
@@ -188,9 +189,10 @@ Basic Usage
...
@@ -188,9 +189,10 @@ Basic Usage
indent=None, separators=None, encoding="utf-8", \
indent=None, separators=None, encoding="utf-8", \
default=None, sort_keys=False, **kw)
default=None, sort_keys=False, **kw)
Serialize *obj* to a JSON formatted :class:`str`. If *ensure_ascii* is
Serialize *obj* to a JSON formatted :class:`str` using this :ref:`conversion
``False``, the result may contain non-ASCII characters and the return value
table <py-to-json-table>`. If *ensure_ascii* is ``False``, the result may
may be a :class:`unicode` instance.
contain non-ASCII characters and the return value may be a :class:`unicode`
instance.
The arguments have the same meaning as in :func:`dump`.
The arguments have the same meaning as in :func:`dump`.
...
@@ -206,7 +208,8 @@ Basic Usage
...
@@ -206,7 +208,8 @@ Basic Usage
.. function:: load(fp[, encoding[, cls[, object_hook[, parse_float[, parse_int[, parse_constant[, object_pairs_hook[, **kw]]]]]]]])
.. function:: load(fp[, encoding[, cls[, object_hook[, parse_float[, parse_int[, parse_constant[, object_pairs_hook[, **kw]]]]]]]])
Deserialize *fp* (a ``.read()``-supporting :term:`file-like object`
Deserialize *fp* (a ``.read()``-supporting :term:`file-like object`
containing a JSON document) to a Python object.
containing a JSON document) to a Python object using this :ref:`conversion
table <json-to-py-table>`.
If the contents of *fp* are encoded with an ASCII based encoding other than
If the contents of *fp* are encoded with an ASCII based encoding other than
UTF-8 (e.g. latin-1), then an appropriate *encoding* name must be specified.
UTF-8 (e.g. latin-1), then an appropriate *encoding* name must be specified.
...
@@ -257,7 +260,8 @@ Basic Usage
...
@@ -257,7 +260,8 @@ Basic Usage
.. function:: loads(s[, encoding[, cls[, object_hook[, parse_float[, parse_int[, parse_constant[, object_pairs_hook[, **kw]]]]]]]])
.. function:: loads(s[, encoding[, cls[, object_hook[, parse_float[, parse_int[, parse_constant[, object_pairs_hook[, **kw]]]]]]]])
Deserialize *s* (a :class:`str` or :class:`unicode` instance containing a JSON
Deserialize *s* (a :class:`str` or :class:`unicode` instance containing a JSON
document) to a Python object.
document) to a Python object using this :ref:`conversion table
<json-to-py-table>`.
If *s* is a :class:`str` instance and is encoded with an ASCII based encoding
If *s* is a :class:`str` instance and is encoded with an ASCII based encoding
other than UTF-8 (e.g. latin-1), then an appropriate *encoding* name must be
other than UTF-8 (e.g. latin-1), then an appropriate *encoding* name must be
...
@@ -276,6 +280,8 @@ Encoders and Decoders
...
@@ -276,6 +280,8 @@ Encoders and Decoders
Performs the following translations in decoding by default:
Performs the following translations in decoding by default:
.. _json-to-py-table:
+---------------+-------------------+
+---------------+-------------------+
| JSON | Python |
| JSON | Python |
+===============+===================+
+===============+===================+
...
@@ -364,6 +370,8 @@ Encoders and Decoders
...
@@ -364,6 +370,8 @@ Encoders and Decoders
Supports the following objects and types by default:
Supports the following objects and types by default:
.. _py-to-json-table:
+-------------------+---------------+
+-------------------+---------------+
| Python | JSON |
| Python | JSON |
+===================+===============+
+===================+===============+
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment