MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / parse_jsonc_trailing_comma_object

Function parse_jsonc_trailing_comma_object

src/agents/mod.rs:1987–1992  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1985
1986 #[test]
1987 fn parse_jsonc_trailing_comma_object() {
1988 let input = r#"{"a": 1, "b": 2,}"#;
1989 let v = parse_jsonc(input);
1990 assert_eq!(v["a"], 1);
1991 assert_eq!(v["b"], 2);
1992 }
1993
1994 #[test]
1995 fn parse_jsonc_trailing_comma_array() {

Callers

nothing calls this directly

Calls 1

parse_jsoncFunction · 0.85

Tested by

no test coverage detected