Add better invalid json handling to reading importer