-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Relationship object not deserialized #17
Comments
Hi, I have the same problem in deserializing objects that have relationships ... |
By the look of it, this library is not maintained. I do not recommend to use it. This problem is one of the many I noticed when first using this library. None of it has been addressed, I made changes to a private copy of the library when I was using it. Unfortunately, I do not have it anymore and can not share the fix I had for this particular bug. |
Nevertheless do you know any JSON API library to use instead of this ?! |
Unfortunately, there is none I know of. I would recommend to use a generic JSON parsing library like SwiftyJSON and wrap it to enforce the JSON API specs. |
Thanks guy, Didn't you work with Spine Library ? It supports JSON API . |
I did not, I am no longer working with this environment (JSON API/iOS) and could not be of any more help, I gave you all I got ;) |
Ok thanks for your help friend :) |
Hi friend . Can you help me ?
|
If you try to deserialize an object such as
when trying to get
person.favoritArticle.id
you are getting""
because When fetching the attribute, the relationship is properly found and the Context tries to get the relationship In Context_Query but the ResourcePool has no knowledge of afavoriteArticle
with the IDarticle-identifier
, the the value is null...I think it should be a nice feature to add the objects in the resourcePool either at the deserialization or even bette when a relationship exists and the object is not found, creating it.
The text was updated successfully, but these errors were encountered: