Improve docs on JSON

- add one simple example of using `ToJson` trait
- make example code more readable
and also "string, which is required"