Improve docs on JSON

- add one simple example of using `ToJson` trait
- make example code more readable
Same spaces and trailing comma deal