diff --git a/json/src/de.rs b/json/src/de.rs index 2f5cd0a82..5dbab9dff 100644 --- a/json/src/de.rs +++ b/json/src/de.rs @@ -162,6 +162,7 @@ impl Deserializer visitor.visit_map(MapVisitor::new(self)) } _ => { + self.eat_char(); Err(self.error(ErrorCode::ExpectedSomeValue)) } };