The 30-year-old judicial officer, posted at Karkardooma court, was found hanging inside the bathroom of his second-floor flat in Safdarjung, officials said.