Follow rails conventions for serializing embedded objects