json.status 0
json.message "返回成功"
json.data do
  json.(@hack_user, :id, :status, :error_line, :error_msg, :expected_output,
      :input, :output, :execute_time, :execute_memory, :created_at, :code)
  json.language @hack_user.hack.language
  json.name @hack_user.hack.name
  json.myproblem_identifier @my_hack.identifier
  json.pass_sets_count @pass_set_count
  json.set_count @set_count

  json.user do
    json.partial! 'users/user', user: current_user
  end
end
