Updated README.rst.

Turned syntax highlight on for example code and added example for `to_json()`, `to_html()`.