Improve docs on JSON

- add one simple example of using `ToJson` trait
- make example code more readable
There shouldn't be spaces around the argument.