embedded another root
json.user do |user|
json.current_user_id current_user.id
json.current_user_name current_user.name
json.admin current_user.is_admin?
json.conversations do |json|
json.array!(@conversations) do |conversation|
json.id conversation.id
json.sender conversation.last_sender.name
json.subject conversation.subject
json.body conversation.last_message.body
end
end
end