fix bug 1065071 - ignore unrecognizable JSON files

Annoying we can't rely on `config.logger` here. We ought to refactor that some day.