working through json serialization for self referencing entities