Rearranged JSON parse clauses.

Rearranged to group parse/5 clauses together to fix a compiler warning.
Fixed some spelling in the documentation as well.
Merge pull request #252 from leighlondon/parse-clauses

Rearranged JSON parse clauses.