better logging on bad json