made travis script check for invalid json