Convert python object to jObject in C#
Sant Lipi
1
Reputation point
Hi ,
Below i am using Jobject trying to convert payton to c#.
Python object which is assigned new value.
Payload["test1"]["test2"] = {"value": "example", "source":15};
In C#
Payload["test1"]["test2"] = JObject.FromObject(new Dictionary<object,object>
{
{
"value","example"
},
{
"source",15
}
});
Is it the right way of assing value to payload in c#
Developer technologies ASP.NET ASP.NET Core
4,815 questions
Developer technologies C#
11,567 questions
Sign in to answer