I've got a question. I try to get value from JSON. JSON have been sent from server by socket. In Client I've got sth like this:
string data = null;
// Receive the response from the remote device.
int bytesRec = sender.Receive(bytes);
data += Encoding.ASCII.GetString(bytes, 0, bytesRec);
Console.WriteLine(data);
Console.ReadLine();
And in console I see :
{"player":0, "size":3}
How can I get value from this String ?
{"player":0 "size":3}is not valid JSON, it should be{"player":0, "size":3}