Skip to content
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

Serialize objects #5

Open
cuyogomez opened this issue Sep 26, 2012 · 0 comments
Open

Serialize objects #5

cuyogomez opened this issue Sep 26, 2012 · 0 comments

Comments

@cuyogomez
Copy link

Hi people. i have a problem... I have a Brand Object with name and id attributes. Then i have a Car with name, color, and foreign key to Brand Object. I need to return a JSON response with a list of Brands and foreach brand display all the cars, but when i do that, my response is
[
{
id:"1",
name:"Ford",
cars:
[
{Car object},
{Car object}
]
}
]

So, the Car object isn't serialized... how can i do that??? Please is urgent!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant