Tests in JSON format

Rather than copying your parser around, and also for inherent documentation,
I have moved to a JSON format for the tests.

Caveat: repo size increased due to repetitive JSON keys

I have no idea if you're interested in merging this PR, so reject at will :) no worries.
But if you notice something totally off (as in the tests are not equivalent), I'd appreciated it if you let me know.