jjzjj

关于 rust:Serde 在反序列化嵌套的 JSON 结构时返回 SyntaxError “expected value”

SerdereturnsaSyntaxError"expectedvalue"whendeserializingnestedJSONstructs我正在尝试从WebAPI(规范)反序列化Spotify元数据JSON。我正在使用hyper从服务器中检索JSON,并使用serde将JSON转换为我可以在Rust中实际使用的东西。从服务器检索JSON就好了,但是当我尝试将JSON转换为可以使用的对象时,Rustpanic并抛出错误:1thread''panickedat'called'Result::unwrap()'onan'Err'value:SyntaxError("expectedvalue

关于 rust:Serde 在反序列化嵌套的 JSON 结构时返回 SyntaxError “expected value”

SerdereturnsaSyntaxError"expectedvalue"whendeserializingnestedJSONstructs我正在尝试从WebAPI(规范)反序列化Spotify元数据JSON。我正在使用hyper从服务器中检索JSON,并使用serde将JSON转换为我可以在Rust中实际使用的东西。从服务器检索JSON就好了,但是当我尝试将JSON转换为可以使用的对象时,Rustpanic并抛出错误:1thread''panickedat'called'Result::unwrap()'onan'Err'value:SyntaxError("expectedvalue