Fix to ids response on request

Fix response arrays on Android by converting them into JSON arrays. "to[0]":"hello", "to[1]":"world" --> "to": ["hello", "world"]