Home > @microsoft/rush-lib > PackageJsonEditor > saveToObject
PackageJsonEditor.saveToObject() method
Get the normalized package.json that represents the current state of the PackageJsonEditor. This method does not save any changes that were made to the package.json, but instead returns the object representation of what would be saved if saveIfModified() is called.
Signature:
saveToObject(): IPackageJson;
Returns: