Fix the json object delimiters

Write "{" instead of "{{". Same for the counterpart.
This commit is contained in:
Thomas Bahn 2015-02-16 20:50:41 +01:00
parent a995e16995
commit d43946b6a6

View File

@ -165,11 +165,11 @@ impl<'a, W: old_io::Writer> ser::Visitor for Visitor<'a, W> {
fn visit_map<V>(&mut self, mut visitor: V) -> Result<(), IoError>
where V: ser::MapVisitor,
{
try!(self.writer.write_str("{{"));
try!(self.writer.write_str("{"));
while let Some(()) = try!(visitor.visit(self)) { }
self.writer.write_str("}}")
self.writer.write_str("}")
}
#[inline]