The evils in current social judgments of ends and policies arise […] from importations of judgments of value from outside inquiry. The evils spring from the fact that the values employed are not determined in and by the process of inquiry […].
-John Dewey, Late Works Volume 12, p. 496
The quote illustrates Dewey’s emphasis on the epistemic endeavour of inquiry. The values which lead our social judgements should arise out of this endeavour, at least as far as Dewey is concerned.
The quote also reveals how moralising Dewey can be concerning social judgments. He does not merely accuse the judgements of being bad, he accuses them of being evil. I find this moralising aspect of his theory the hardest to justify. In the end, I do not see how he can defend it without contradicting himself or accepting a fundamental revision to this theory.
If you want, you can add here the usual paragraph about defending the value of inquiry/science/truth in the age of alternative facts.