Start a new topic
Answered

Invalid type in JSON write problem

Hi, All:


We (that is to, say my student, not me) has a problem saving a dictionary consisting of [String:Clock]. Clock is a class that by itself is "Kinvey" compatible (NSObject, implements hostToKinveyPropertyMapping()). I am assuming that the reason for the error is because Kinvey can't serialize Clock, i.e., write out its individual, JSON-compatible elements. Is that correct?


Thanks for any info,


Michael




Best Answer

Hi, Wani:


We solved the problem by re-architecting the app to embed the String in the Clock class.


Thanks,


Michael


Answer

Hi, Wani:


We solved the problem by re-architecting the app to embed the String in the Clock class.


Thanks,


Michael

Hi Michael,


Can you share relevant code snippet? I would like to try to reproduce the issue before I can say for sure.



Regards,

Wani

Kinvey Support

Login or Signup to post a comment