Only generate JSON for root condition.