Skip to content

Commit 27efa37

Browse files
committed
JSON output fix
1 parent f0b2916 commit 27efa37

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/container.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@ pub struct BytesContainer {
2121
#[serde(skip)]
2222
pub codec: Codec,
2323
/// The JSON represantation of the bytes.
24-
#[serde(skip)]
24+
#[serde(flatten)]
2525
pub json_value: Option<serde_json::Value>,
2626
/// The human readable representation of the bytes.
27+
#[serde(skip)]
2728
pub humanized: String,
2829
/// Context for encoding errors.
2930
#[serde(skip)]

tests/integration_tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ mod tests {
397397
.expect("Failed waiting for output");
398398

399399
cmd.assert().success();
400-
cmd.assert().stdout(contains("\\\"test\\\": \\\"echo\\\""));
400+
cmd.assert().stdout(contains("\"test\": \"echo\""));
401401

402402
Ok(())
403403
}

0 commit comments

Comments
 (0)