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
Not an issue with json_pretty but I thought you might be interested in comparing the same thing implemented with serde_json:
externcrate serde_json;externcrate serde_transcode;use std::io;fnmain(){let s = r#"{"description": "string for test", "id" : 123, "true" : true}"#;// A streaming JSON deserializer.letmut deserializer = serde_json::Deserializer::new(s.bytes().map(Ok));// A streaming pretty JSON serializer that writes to stdout.letmut serializer = serde_json::Serializer::pretty(io::stdout());// Efficiently process the input string while writing it in pretty form to stdout.
serde_transcode::transcode(&mut deserializer,&mut serializer).unwrap();}
{
"description": "string for test",
"id": 123,
"true": true
}
The text was updated successfully, but these errors were encountered:
Not an issue with json_pretty but I thought you might be interested in comparing the same thing implemented with serde_json:
The text was updated successfully, but these errors were encountered: