We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2966d19 commit bf03f6dCopy full SHA for bf03f6d
1 file changed
src/lib.rs
@@ -27,6 +27,10 @@ fn orjson(py: Python, m: &PyModule) -> PyResult<()> {
27
Ok(())
28
}
29
30
+/// loads(obj, /)
31
+/// --
32
+///
33
+/// Deserialize JSON to Python objects.
34
#[pyfunction]
35
pub fn loads(py: Python, obj: PyObject) -> PyResult<PyObject> {
36
let obj_ref = obj.as_ref(py);
@@ -49,6 +53,10 @@ pub fn loads(py: Python, obj: PyObject) -> PyResult<PyObject> {
49
53
decode::deserialize(py, &val)
50
54
51
55
56
+/// dumps(obj, /)
57
58
59
+/// Serialize Python objects to JSON.
52
60
61
pub fn dumps(py: Python, obj: PyObject) -> PyResult<PyObject> {
62
encode::serialize(py, obj)
0 commit comments