Rails: When I render json in controller I get controller name in answer
<p>I get an action in my controller:</p>

<pre><code>def autocomplete_client
    clients = Client.filter(params[:q], params[:field_name])
    answer = clients.map{|cl| cl.attributes.merge(value: cl.send(params[:field_name]))}
    render json: answer
end
</code></pre>

<p>It's work fine. But in browser I get my 'answer' nested to object with one field - name of controller. </p>

<pre><code>{"agency_orders":[{"id":2,"fio":"sasd","passport":"","birthday":null,"phone":"","email":null,"comment":null,"created_at":"2016-01-04T11:58:09.736Z","updated_at":"2016-01-04T11:58:09.736Z","value":"sasd"}]}
</code></pre>

<p>When 'agenyc_orders' is name of controller.
I want get only array with data.</p>

<p>How can I get this behavior?</p>