peter z Fri Aug 05 12:05:57 -0400 2011

Subject: JSON encoding associations

JSON serializer currently does not serialize associations, even when eagerly loaded. Are there any plans to add support for this?

wesen 3000 Tue Aug 23 12:13:38 -0400 2011

I think you can serialize them by adding an "include" options. I modified the JSON export a bit, but I usually do

1 $model->toJSON(array("include" => array("assoc", 
2              array("another_assoc" => "further_nested_assoc")))));