fix 2.2 compat. formatting (JSON parse error in discovery)