JSON cleanup

* Tried to make the code more idiomatic
* Renamed the `wr` field of the `Encoder` and `PrettyEncoder` structs to `writer`
* Replaced some `from_utf8` by `from_utf8_owned` to avoid unnecessary allocations
* Removed unnecessary `unsafe` code
This commit is contained in:
Adolfo Ochagavía 2014-06-28 14:34:58 +02:00
parent 94343da1bd
commit 4c65a86571
1 changed files with 185 additions and 264 deletions

File diff suppressed because it is too large Load Diff