If an attribute is a collection and responds to as_json, go ahead and call as_json on it. Otherwise, the JSON dump can have issues processing AR models and such.