Improve docs on JSON

- add one simple example of using `ToJson` trait
- make example code more readable
To me this seems like a more complete illustration of this imaginary use-case...