Improve docs on JSON

- add one simple example of using `ToJson` trait
- make example code more readable
@steveklabnik I've remove the method, it looked prettier though... But I don't have a good reason other then illustrating more of Rust, which is not the right thing in this simple example :)