title: OJ responds different results in rails 3.0.3 and 4.2.5
body: <p>We are upgrading rails from 3.0.3 to 4.2.5. We are using OJ to searialize objects to respond mobile. After upgrading, OJ respondes different way as mentioned below.</p>
  
  <pre><code>addr = Address.where("id = ?", 1)
  Oj.dump({'response' =&gt; addr}, mode: :compat)
  </code></pre>
  
  <p><strong>Rails 3.0.3 output:</strong><br>
  <code>"{"response":[{"address":{"id":1,"text":"123, city, state","zip":46703}}]}"</code></p>
  
  <p><strong>Rails 4.2.5 output:</strong><br>
  <code>"{"response":[{"id":1,"text":"123, city, state","zip":46703}]}"</code></p>
  
  <p>What is best way of sending response same as rails 3.0.3 ?</p>