Serialization deserialization question?

Here is the inside of Invoke Code

image

Hi @170290064

Remove that first line and the error should be sorted.

If you still have any error Go to Imports, Type Newtonsoft.Json.Linq and click on that. It will be added.

Check the below image for better udnerstanding.

Regards

@170290064

Newton.Json.Linq is a namespace you have to import it from Import Panel

Remove that line in invoke code

Hi @170290064 ,

Do as below,

image

string jsonString = "{\"name\":\"John\",\"age\":30}";
JObject jsonObj = JObject.Parse(jsonString);
string name = jsonObj["name"].ToString();
Console.WriteLine("Name is: "+name);

Output:

image

Regards,
Vinit Mhatre

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.