I'm create a connection to websocket server in Unity by using System.Net.Websockets. I have a JSON array with variables. Actually, i can send a JSON file. But, when i try read what server responds (my server respond me what i send to him) i have a just JSON array. I want read each variable and equals each of them to values, which i created before sending. For example: before sending(PlayerName: "Name", Money: 200), server respond (PlayerName: "Name", Money: 200)
Part of code, where i had from server undecoded JSON
Debug.Log("Server responds: " + Encoding.UTF8.GetString(buf.Array, 0, r.Count));
Here all of my code https://pastebin.com/Ht6hmkgs
When i try a read JSON - in Unity console i have just a array of values, like this
{\"name\":\"PlayerName\",\"money\":200}