Added simple unit test of JSON validity.