Open Rhemecoh opened 1 year ago
I solved most of the problem. The data from the socket comes as an array. I need to convert it to Object. How can I do that?
@Rhemecoh https://www.nuget.org/packages/Newtonsoft.Json is a very popular package for serializing and deserializing json.
It's much better if you create a class for your response and use JsonConvert.SerializeObject
of Newtonsoft.Json
Hello,
How can I assign json data to variables?
My all code:
What I want to do is to assign the USDTRY price, the GOLD price, the EURTRY price to the variables and print them one after the other. Example: string USDTRY = USDTRYprice(26.1200); string EURTRY = EURTRYprice(28.59100); strring GOLD = GOLDprice(1622.370);
Console.WriteLine("USDTRY Price= "+ USDTRY) Console.WriteLine("EURTRY Price= "+ EURTRY) Console.WriteLine("GOLD Price= "+ GOLD)
Thank you for your help