Deserializing Json in Hololens app

esengunesengun
edited November 23 in Questions And Answers

I am trying to deserialize below json content. I have tried JsonUtility and Newtonsoft.Json libraries. JsonUtility could not deserialize nested arrays. And I got Configuration error with Newtonsoft library.

Both library works perfect in Unity 2018.2.17.f1. However, they fail on Hololens device. I am targetting .net 4.x and using il2cpp scripting backend.

{"RetVal":true,
"UserId":"d14ba708-5faf-4827-86b1-21468dfd35d2",
"Role":"Operator",
"Processes":[
{"Id":"e5b16261-7756-436b-a928-b9d50e341579",
"Name":"Process Test",
"Description":"Process Test Description",
"VideoURL":"~/Content/Files/e5b16261-7756-436b-a928-b9d50e341579.mp4",
"TaskCount":12,
"SubtaskCount":12,
"Tasks":null}]
}

I also tried JToken but I got exception again when running on the device.

Any help is appriciated. Thanks

Best Answer

Answers

Sign In or Register to comment.