class ActiveModel::Serializer

def json_key

def json_key
  if root == true || root.nil?
    self.class.root_name
  else
    root
  end
end