A simple wrapper to capture JSON output from Mocha and make it available to code.