2 json.id old_relation.relation_id
3 json.timestamp old_relation.timestamp.xmlschema
4 json.version old_relation.version
5 json.changeset old_relation.changeset_id
6 json.user old_relation.changeset.user.display_name
7 json.uid old_relation.changeset.user_id
9 json.visible old_relation.visible unless old_relation.visible
11 unless old_relation.relation_members.empty?
12 json.members(old_relation.relation_members) do |m|
13 json.type m.member_type.downcase
15 json.role m.member_role
19 json.tags old_relation.tags unless old_relation.tags.empty?