online
! ˆ
ƒn½Âa–Ým_J µ5*qAà™¸”Å£Æ
Index of /FSS-BCZ/root/sys/devices/system/cpu/cpu3/driver/cpu0/node0/memory18
Index of /FSS-BCZ/root/sys/devices/system/cpu/cpu3/driver/cpu0/node0/memory18
# ˆl–äY>””†Ù”â�nãa¸&TÅ£Å
„„û¿Ç 0 a
´iÃ6 ã
@ sÒ d Z dZg d¢ZdZddlmZmZ ddlmZ ddl Z ed d
d
d
dddd�Z
d d
d
d
ddddd dœ d
d„Zd d
d
d
ddddd dœ dd„Zeddd�Z
dd„ Zdddddddœdd„Zdddddddœdd„ZdS )a JSON (JavaScript Object Notation) is a subset of
JavaScript syntax (ECMA-262 3rd edition) used as a lightweight data
interchange format.
:mod:`json` exposes an API familiar to users of the standard library
:mod:`marshal` and :mod:`pickle` modules. It is derived from a
version of the externally maintained simplejson library.
Encoding basic Python object hierarchies::
>>> import json
>>> json.dumps(['foo', {'bar': ('baz', None, 1.0, 2)}])
'["foo", {"bar": ["baz", null, 1.0, 2]}]'
>>> print(json.dumps("\"foo\bar"))
"\"foo\bar"
>>> print(json.dumps('\u1234'))
"\u1234"
>>> print(json.dumps('\\'))
"\\"
>>> print(json.dumps({"c": 0, "b": 0, "a": 0}, sort_keys=True))
{"a": 0, "b": 0, "c": 0}
>>> from io import StringIO
>>> io = StringIO()
>>> json.dump(['streaming API'], io)
>>> io.getvalue()
'["streaming API"]'
Compact encoding::
>>> import json
>>> mydict = {'4': 5, '6': 7}
>>> json.dumps([1,2,3,mydict], separators=(',', ':'))
'[1,2,3,{"4":5,"6":7}]'
Pretty printing::
>>> import json
>>> print(json.dumps({'4': 5, '6': 7}