Fix #2134 - Clarify purpose of toJSON in documentation.