aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/de.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/de.rs b/src/de.rs
index 1406f35..1fb2eb5 100644
--- a/src/de.rs
+++ b/src/de.rs
@@ -634,7 +634,12 @@ impl<'a> Deserializer<'a> {
} else {
loop {
match self.next()? {
- Some(Token::RightBracket) |
+ Some(Token::RightBracket) => {
+ if array {
+ self.eat(Token::RightBracket)?;
+ }
+ break
+ }
Some(Token::Newline) |
None => break,
_ => {}