diff --git a/src/container.rs b/src/container.rs index 3f79e6d0..c3c1fd1b 100644 --- a/src/container.rs +++ b/src/container.rs @@ -21,9 +21,10 @@ pub struct BytesContainer { #[serde(skip)] pub codec: Codec, /// The JSON represantation of the bytes. - #[serde(skip)] + #[serde(flatten)] pub json_value: Option, /// The human readable representation of the bytes. + #[serde(skip)] pub humanized: String, /// Context for encoding errors. #[serde(skip)] diff --git a/tests/integration_tests.rs b/tests/integration_tests.rs index 35d784a7..8c03e6cc 100644 --- a/tests/integration_tests.rs +++ b/tests/integration_tests.rs @@ -397,7 +397,7 @@ mod tests { .expect("Failed waiting for output"); cmd.assert().success(); - cmd.assert().stdout(contains("\\\"test\\\": \\\"echo\\\"")); + cmd.assert().stdout(contains("\"test\": \"echo\"")); Ok(()) }