[iwhd] emit valid JSON for the root