Theoretically speaking ``doc`` could be non-null here, even in the case of error, since you are checking ``err`` separately. But maybe it's not possible from ``JsonParseFile``'s side. Do you know?