Test rejection of bad JSON.