Compare commits

..

2 Commits

Author SHA1 Message Date
Satyabrata Mohanty
68f8d62ef0
Merge cf47fd21e4c1b285452c2d50c6d86e92ab0b9825 into f6c6a48de4a87bad7c1cd4d0fedbfdd5551ea22a 2026-02-10 11:24:22 +08:00
blueloveTH
f6c6a48de4 fix #461 2026-02-10 11:23:13 +08:00

View File

@ -5,6 +5,16 @@ label: json
JSON serialization and deserialization module.
This module is not safe. You may not want to use it with untrusted data.
If you need a safe alternative, consider a 3rd-party library like `cjson`.
You can override the json functions with:
```c
py_GlobalRef mod = py_getmodule("json");
py_bindfunc(mod, "loads", _safe_json_loads);
py_bindfunc(mod, "dumps", _safe_json_dumps);
```
#### Source code
:::code source="../../include/typings/json.pyi" :::