diff options
Diffstat (limited to 'src/de.rs')
-rw-r--r-- | src/de.rs | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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, _ => {} |