I'm encountering a problem since I updated my project to Xamarin Unified API.
I use Json.Net to save lists of CGPoint objects into json strings, and I also use it to deserialize json strings into lists of CGPoint objects.
Serializing still works fine, but deserializing doesn't work anymore, I get the following exception :
Newtonsoft.Json.JsonSerializationException has been thrown
Error converting value 94 to type 'System.nfloat'. Path '.X', line 4, position 16.
Here's my current code for deserialization :
String json = GetJsonString(); List<List>points = JsonConvert.DeserializeObject<List<List>>(json);
Did anyone already run into that problem and/or can help me find a solution please ?
Do I have to create my own Point class with float instead of nfloat or is there a better solution ? I ran into this with CGPoint today, but I could be using other objects from Apple frameworks that also use nfloat, nint, etc... in other parts of the project.