You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use serde::Serialize;#[derive(Default,Serialize)]structFoo{#[serde(rename = "bar\"")]bar:String,}fnmain(){println!("{}", serde_json::to_string_pretty(&Foo::default()).unwrap());}
... returns:
{
"bar\"": ""
}
... but Doku will document it in a wrong way:
{"bar"": "string"}
The text was updated successfully, but these errors were encountered:
(we already have the escaping logic implemented as a part of value_to_string.rs, so my rough guess is that we should just re-use it to escape all keys before passing them into the printer.)
This code:
... returns:
... but Doku will document it in a wrong way:
The text was updated successfully, but these errors were encountered: