In refactoring this behavior previously plain strings were no longer
being passed through JSON.stringify even in json mode. This commit
changes that to the previous behavior which fixes the bug in npm view.
This also required changing the behavior of npm pkg which relied on this.
In refactoring this behavior previously plain strings were no longer being passed through JSON.stringify even in json mode. This commit changes that to the previous behavior which fixes the bug in
npm view
. This also required changing the behavior ofnpm pkg
which relied on this.Fixes #7537