MCPcopy Create free account
hub / github.com/dylan-sutton-chavez/edge-python / loads

Function loads

std/json/src/lib.rs:69–78  ·  view source on GitHub ↗
(text: String, kw: Kwargs)

Source from the content-addressed store, hash-verified

67
68#[plugin_fn]
69fn loads(text: String, kw: Kwargs) -> Result<Handle> {
70 let ctx = main::parser::LoadCtx {
71 object_hook: kw.get_handle("object_hook")?,
72 object_pairs_hook: kw.get_handle("object_pairs_hook")?,
73 parse_float: kw.get_handle("parse_float")?,
74 parse_int: kw.get_handle("parse_int")?,
75 parse_constant: kw.get_handle("parse_constant")?,
76 };
77 main::parser::parse(&text, &ctx)
78}
79
80#[plugin_fn]
81fn dumps(value: Handle, kw: Kwargs) -> Result<String> {

Callers

nothing calls this directly

Calls 2

get_handleMethod · 0.80
parseFunction · 0.50

Tested by

no test coverage detected