blueloveTH bc6d233f8b ...
2023-05-20 18:45:46 +08:00

375 B

icon label
package json

json.loads(s)

Decode a JSON string into a python object.

It is supported by the eval() function.

json.dumps(obj)

Encode a python object into a JSON string.

It is supported by the compiler with JSON_MODE enabled.

!!! There is a special method __json__. If defined, it will be called when json.dumps() is called. !!!