Fixing deprecated JSON call

I believe this could be something like:

```rust
encodable.encode(&mut json::Encoder::new(&mut io::stdout()))
```

(I'm filing a Rust issue about making this more ergonomic)