Hi,
I suppose this question is for people who have actually worked with JSonFX. I’ve downloaded a version of JSonFX specific to unity: here
From what I understand… you create a class the inherits from an interface (JsonConverter), which will convert the json dictionary into an object using the overridden ReadJson() function. I’ve created two classes that convert the passed dictionary into a C# class object. Both converter class look basically the same, but will return different types of objects, but for some reason the ReadJson function is only being called on one Converter class, and not the other.
Does anyone know of a reason why this would be happening? I have been mucking with this all day, and I can’t find a reason as to why the ReadJson() func of one class is called and not the other. Both CanConvert() funcs return true and then false because it calls CanConvert on the type, then on the dictionary for some reason, but that’s besides the point, which is that BOTH CanConvert() functions return true, then false, BUT afterwords ClassA’s ReadJson() is called, but ClassB’s ReadJson() wont be called.
I hope I haven’t confused you guys too much.
Also, side question, is there a way to only grab the Dictionary of the json object?
Thank you in advance for any help.