Skip to content
This repository was archived by the owner on May 11, 2018. It is now read-only.

Deep serialization of nested-resource(s)#18

Open
hontas wants to merge 4 commits into
cerebris:masterfrom
hontas:patch-1
Open

Deep serialization of nested-resource(s)#18
hontas wants to merge 4 commits into
cerebris:masterfrom
hontas:patch-1

Conversation

@hontas

@hontas hontas commented May 16, 2013

Copy link
Copy Markdown

If a resource contains other resources they will be serialized to. This gives greater control of the JSON data representation.

Nested resource should not contain resourceName as that will mess up the structure.

hontas added 4 commits May 16, 2013 12:20
If a resource contains one or a list of resources they will be serialized to. This gives greater control of the JSON data representation. Also made resourceName optional as a nested resource would otherwise mess up the structure.
Now using Ember.isArray and Ember.Object.detectInstance
Another try, now providing a nested variable to determin if a resource is nested and should be returned without being wrapped in a named object even though it might have resourceName-property.
@hontas

hontas commented May 16, 2013

Copy link
Copy Markdown
Author

Got a little confused cause we don't use resourceName in our implementation. Sorry 'bout that.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant