[{ Id: 1, Name: "hello" }, { Id: 2, Name: "world" }]
public Class Test { public int Id { get; set;} public string Name { get; set; } }
object[] testArray; bool found = operationInput.TryGetArray("TestArray", out testArray);
Solved! Go to Solution.
object[] testArray; bool found = operationInput.TryGetArray("parm1", out testArray); //testArray is a array object(JsonObject) JavaScriptSerializer json_serializer = new JavaScriptSerializer(); Test myClass = json_serializer.Deserialize<Test>((testArray[0] as JsonObject).ToJson());
object[] testArray; bool found = operationInput.TryGetArray("parm1", out testArray); //testArray is a array object(JsonObject) JavaScriptSerializer json_serializer = new JavaScriptSerializer(); Test myClass = json_serializer.Deserialize<Test>((testArray[0] as JsonObject).ToJson());