Minimal exception handling in case of a faulty json line in a file