Open miguelcobain opened 9 years ago
I am working on a deserialiser, but I haven't got one up to commit-quality as of yet. The problem is, as you say, with associations.
I think the best viable option is to do the opposite of the serialiser, meaning to take the flat structure of the JSON and build a hierarchical instead.
Then once this structure is OK, a simple new Gson().fromJson(jsonString, MyClass.class) would suffice (in an internal private method inside Hyrrokkin)
Hashtables all the way :)
Is any deserializer planned? How can we handle the task of handling the requests from Ember Data?
My main problem is how do we handle associations.
Let's say we have a POST:
and
What would be the equivalent instance in Java? Creating
Role
instances within aUser
instance, with only the their id set? Seems the most sensible approach.