How can I send this response to the server?
Posted: 24 Jul 2020, 12:21
Hey.
So I want to send this response to the server when a user is making a loginRequest.
{"t":"xt","b":{"r":-1,"o":{"rank":4,"userName":"idan0sh","list":"[{\"id\":4,\"name\":'test2,\"ip\":'213.8.147.198',\"port\":443,\"capicity\":5.0,\"dt\":202007241520},{\"id\":2,\"name\":'test3',\"ip\":'213.8.147.196',\"port\":443,\"capicity\":3.4,\"dt\":202007241520},{\"id\":6,\"name\":'test4',\"ip\":'213.8.147.200',\"port\":443,\"capicity\":2.1,\"dt\":202007241520},{\"id\":8,\"name\":'test5.',\"ip\":'213.8.147.202',\"port\":443,\"capicity\":4.2,\"dt\":202007241520},{\"id\":7,\"name\":'test6',\"ip\":'213.8.147.201',\"port\":443,\"capicity\":2.5,\"safe\":true,\"dt\":202007241520},{\"id\":1,\"name\":'test7',\"ip\":'213.8.147.195',\"port\":443,\"capicity\":2.6,\"dt\":202007241520},{\"id\":10,\"name\":'test8',\"ip\":'213.8.147.214',\"port\":443,\"capicity\":0.6,\"dt\":202007241520}]",
"safeChat":false,"_cmd":"server_list"}}}.
I tried something, but I can't find how to make it the same exact thing.
I made everything correct, except the "list", I can't find a way to make it String with all the "\" because this is a json response and this is fucking up.
How can I send this response exactly? (I need it to be the same)
Thanks!
So I want to send this response to the server when a user is making a loginRequest.
{"t":"xt","b":{"r":-1,"o":{"rank":4,"userName":"idan0sh","list":"[{\"id\":4,\"name\":'test2,\"ip\":'213.8.147.198',\"port\":443,\"capicity\":5.0,\"dt\":202007241520},{\"id\":2,\"name\":'test3',\"ip\":'213.8.147.196',\"port\":443,\"capicity\":3.4,\"dt\":202007241520},{\"id\":6,\"name\":'test4',\"ip\":'213.8.147.200',\"port\":443,\"capicity\":2.1,\"dt\":202007241520},{\"id\":8,\"name\":'test5.',\"ip\":'213.8.147.202',\"port\":443,\"capicity\":4.2,\"dt\":202007241520},{\"id\":7,\"name\":'test6',\"ip\":'213.8.147.201',\"port\":443,\"capicity\":2.5,\"safe\":true,\"dt\":202007241520},{\"id\":1,\"name\":'test7',\"ip\":'213.8.147.195',\"port\":443,\"capicity\":2.6,\"dt\":202007241520},{\"id\":10,\"name\":'test8',\"ip\":'213.8.147.214',\"port\":443,\"capicity\":0.6,\"dt\":202007241520}]",
"safeChat":false,"_cmd":"server_list"}}}.
I tried something, but I can't find how to make it the same exact thing.
I made everything correct, except the "list", I can't find a way to make it String with all the "\" because this is a json response and this is fucking up.
How can I send this response exactly? (I need it to be the same)
Thanks!