MCPcopy Create free account
hub / github.com/AI45Lab/Code / py_any_to_json

Function py_any_to_json

sdk/python/src/lib.rs:6224–6228  ·  view source on GitHub ↗
(value: &Bound<'_, PyAny>)

Source from the content-addressed store, hash-verified

6222}
6223
6224fn py_any_to_json(value: &Bound<'_, PyAny>) -> PyResult<String> {
6225 let json_mod = value.py().import("json")?;
6226 let json_str = json_mod.call_method1("dumps", (value,))?;
6227 json_str.extract::<String>()
6228}
6229
6230fn verification_reports_from_value(
6231 reports: serde_json::Value,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected