Make sure JSON is valid