Update JSONParse.js

Added a ton of convenience functions.
Made the code much drier.
Changed unit tests to use them.