Handle license being an object in package.json