(ctx: Ctx<'js>, bytes: ObjectBytes<'js>)
| 6 | use simd_json::{Node, StaticNode}; |
| 7 | |
| 8 | pub fn json_parse_string<'js>(ctx: Ctx<'js>, bytes: ObjectBytes<'js>) -> Result<Value<'js>> { |
| 9 | let bytes = bytes.as_bytes(&ctx)?; |
| 10 | json_parse(&ctx, bytes) |
| 11 | } |
| 12 | |
| 13 | pub fn json_parse<'js, T: Into<Vec<u8>>>(ctx: &Ctx<'js>, json: T) -> Result<Value<'js>> { |
| 14 | let mut json: Vec<u8> = json.into(); |
nothing calls this directly
no test coverage detected