Test rejection of bad JSON.
Merge pull request #261 from meirf/test_bad_json_rejection

Test rejection of bad JSON.