This is one of the least practiced verses in the New Testament. Confess your sins to each other.
To each other. Not privately, not only to God, but out loud to another human being who will still be there afterward. Most of us have quietly filed this one under optional.
The reason it is hard is the reason it works. A thing kept in the dark takes constant maintenance. You manage who knows which part, you steer conversations, you carry a low background dread of being found out. Saying it out loud costs one uncomfortable conversation and ends the maintenance.
James attaches healing to it, and notice he does not specify what kind. Something about being fully known by one other person and not abandoned appears to do work that private confession alone does not.
This is not a call to tell everybody. It is a call to tell somebody. One person, chosen carefully, is enough to break the isolation.