“This, then, is the judgment” writes John, the beloved one. The judgment is that those who do evil avoid the Light because they hate the Light while those who do good seek out the Light because their deeds are done by God Himself. The Light exposes evil and those who do evil things hide from exposure.
And those who do good discover that those good things can not originate from themselves; instead the good emerges from the Light Himself.
19 “This, then, is the judgment: The light has come into the world, and people loved darkness rather than the light because their deeds were evil. 20 For everyone who practices wicked things hates the light and avoids it, so that his deeds may not be exposed. 21 But anyone who lives by the truth comes to the light, so that his works may be shown to be accomplished by God.”