Hi,
I'm trying to use jsonc-parser instead of serde-json in one project, and I very fast ended with error when trying to parse:
{
"version": [0, 3, 0],
}
This is minimum test case for that error:
#[test]
fn it_should_parse_array_value_in_object_to_serde_value() {
#[derive(::serde::Deserialize, Debug, PartialEq)]
#[serde(crate = "::serde")]
pub struct Config {
pub version: (u8, u8, u8),
}
let result: Config = parse_to_serde_value(
r#"{
"version": [0, 3, 0]
}"#,
&Default::default(),
)
.unwrap();
assert_eq!(result, Config { version: (0, 3, 0) });
}
I'm trying to fix code myself, but I don't know the codebase and maybe someone can do it much more quickly.
Hi,
I'm trying to use jsonc-parser instead of serde-json in one project, and I very fast ended with error when trying to parse:
{ "version": [0, 3, 0], }This is minimum test case for that error:
I'm trying to fix code myself, but I don't know the codebase and maybe someone can do it much more quickly.