Fix mangled results JSON