Fixed #891

Better messages when JSON-related assertions receive invalid JSON.