Improve docs on JSON

- add one simple example of using `ToJson` trait
- make example code more readable
there's a space after the `int`, but not the `str` or `vector`. They should all have spaces.

Also, this should have a trailing comma.