json.extract! @user, :id, :email, :group_id