about summary refs log tree commit diff
path: root/src/rt/rust_shape.cpp
diff options
context:
space:
mode:
authorErick Tryzelaar <erick.tryzelaar@gmail.com>2012-02-25 16:39:32 -0800
committerBrian Anderson <banderson@mozilla.com>2012-02-28 18:00:50 -0800
commit012dec5e5756bdc01e771f5152d71eafa9c8441e (patch)
tree13d04d8dfaefc360547e184296cea6e995f597f1 /src/rt/rust_shape.cpp
parent8cc23aab6d29ddf46afa0a605171fcf6533a61ec (diff)
downloadrust-012dec5e5756bdc01e771f5152d71eafa9c8441e.tar.gz
rust-012dec5e5756bdc01e771f5152d71eafa9c8441e.zip
std: rewrite json.rs to fix bugs and use readers/writers
Our json implementation did not conform to the spec, and
was missing support for escpaed characters and exponental
numbers. This fixes it, and adds support for reading/writing
json directly from/to a stream.

There are two things left unimplemented. We could use a
"to_json" iface/impl, but that really needs traits to cut
down on code duplication. The other is it wouldn't be that
not that hard to turn this implementation into a event driven
parser like YAJL, but I ran into some type-inference bugs,
so I cut that out. It'd be nice to revisit this in the future
though.
Diffstat (limited to 'src/rt/rust_shape.cpp')
0 files changed, 0 insertions, 0 deletions