log details of invalid JSON