Fix #2134 - Clarify purpose of toJSON in documentation.
Merge pull request #2135 from braddunbar/tojson

Fix #2134 - Clarify purpose of toJSON in documentation.