(1-1/1)
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")))));
(1-1/1)
June 27 2010
September 23, 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?