JsonSerializationException when called CustomVisionPredictionClient.DetectImage

zachwalkergames 21 Reputation points
2022-06-22T23:12:57.69+00:00

Hello! Currently trying to build a UWP app for Hololens in Unity. I'm getting a JsonSerializationException on the Hololens when calling this code
ImagePrediction result = CustomVisionPredictionClient.DetectImage(projectID, modelName, testImage);

I have all the dependencies installed, except my NewtonSoft.Json package is version 12.X, instead of the recommended 10.X. Because of this, I have disabled "Assembly Version Validation" in the Unity PlayerSettings. Anyone know why this error might be thrown, is it the package version?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,346 questions
Universal Windows Platform (UWP)
HoloLens Development
HoloLens Development
HoloLens: A family of Microsoft self-contained, holographic devices that enable engagement with digital content and interaction with holograms in the surrounding environment.Development: The process of researching, productizing, and refining new or existing technologies.
380 questions
{count} votes