Hello everyone.

The Mixed Reality Forums here are no longer being used or maintained.

There are a few other places we would like to direct you to for support, both from Microsoft and from the community.

The first way we want to connect with you is our mixed reality developer program, which you can sign up for at https://aka.ms/IWantMR.

For technical questions, please use Stack Overflow, and tag your questions using either hololens or windows-mixed-reality.

If you want to join in discussions, please do so in the HoloDevelopers Slack, which you can join by going to https://aka.ms/holodevelopers, or in our Microsoft Tech Communities forums at https://techcommunity.microsoft.com/t5/mixed-reality/ct-p/MicrosoftMixedReality.

And always feel free to hit us up on Twitter @MxdRealityDev.
Options

Deserializing Json in Hololens app

esengunesengun
edited November 2018 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.