AnsweredAssumed Answered

SOE request parameter parsing: how to deserialize an array of customized object? (C#)

Question asked by on May 17, 2013
Latest reply on May 20, 2013 by
for example, if the parameter TestArray looks like this:
[{     Id: 1,     Name: "hello" }, {     Id: 2,     Name: "world" }]

I have a class Test defined in the code:
public Class Test {     public int Id { get; set;}     public string Name { get; set; } }

then in SOE handler, how can deserialize TestArray to an array of Test objects?
If using:
object[] testArray; bool found = operationInput.TryGetArray("TestArray", out testArray);

then how can convert testArray from object[] to Test[] or IList<Test>?

thanks for any advice!