Updated documentation to address issue #815.

Issue 815 points out a discrepancy in the documentation where JSON string representations are used to assert equality. This pull request replaces the example to fullfil the promise of the text.