This was SVN commit r16224.
Replaces the code for JSON parsing and writing with an implementation using the JSON Spirit library. Fixes #2434 Refs #1886 This was SVN commit r14783.