1json.array!(@files) do |file| 2 json.extract! agent, :fingerprint, :state 3 json.url agent_file_url([agent, file], format: :json) 4end