Refactoring to move the JSON test data into separate files, autoloaded by the test suite.  It keeps the two languages separate and stops the overuse of HEREDOC.