If you want to return json, please do it directly in the controller action:
`render json: @languages`