title: Changing JSON field names in Rails responses
body: <p>I need to allow for customization of json output per account.  One person may like the standard json response. Another may wish to have the exact same feed except they need the "name" field called "account_name" or something.</p>
  
  <p>So with a standard user they may be happy with </p>
  
  <pre><code>@model.to_json(only: [:name, :title, :phone])
  </code></pre>
  
  <p>Another user may wish to see their json response as</p>
  
  <pre><code>@model.to_json(only: [:name (AS ACCOUNT_NAME) , :title, :phone])
  </code></pre>
  
  <p>I have found solutions that override the as_json/to_json in the model but those seem to be solutions that effect everyone.  How can I change them just on a per access/per account basis?</p>