pub fn json_parse(
input: &str,
obj_pool: &mut ObjectPool,
map_pool: &mut MapPool,
str_pool: &mut StringPool,
registers: &RegisterFile,
recursion_stack: &mut RegisterFile,
gc: &mut GcState,
) -> Result<Data, &'static str>Expand description
Parses a json document into a Data graph. A malformed document returns a
short static reason.
A collection the parse starts reads registers and recursion_stack as
its roots, so every other value the program still holds has to be
reachable from them, and the caller stores the result before it allocates
again.