Improve docs on JSON

- add one simple example of using `ToJson` trait
- make example code more readable
The problem is that it's needlessly complex. If there isn't a good reason to make a method, then you shouldn't make a method.