Rearranged JSON parse clauses.

Rearranged to group `parse/5` clauses together to fix a compiler warning.
Fixed some spelling in the documentation as well.