add some logging for bad JSON