In what ways can the independence of journalists be protected in democracies like India?

The Committee to Protect Journalists has urged the Prime Minister to address the issue of jailed journalists. I am curious about the mechanisms and reforms that can safeguard press freedom while balancing national interests.