fix discovery response in json