We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 527aa43 commit b8848cdCopy full SHA for b8848cd
src/main.rs
@@ -148,7 +148,9 @@ fn main() -> Result<()> {
148
Codec::Json => {
149
let json = serde_json::from_slice::<serde_json::Value>(&buffer)
150
.map_err(|e| anyhow!("Invalid input JSON: {}", e))?;
151
- (Some(json), buffer)
+ let minified_buffer =
152
+ serde_json::to_vec(&json).map_err(|e| anyhow!("Couldn't serialize JSON: {}", e))?;
153
+ (Some(json), minified_buffer)
154
}
155
Codec::Raw => (None, buffer),
156
Codec::JsonToMessagepack => {
0 commit comments