title: ActiveRecord to_json to exclude null values
body: <p>Is there an ActiveRecord setting that will allow me to remove null values before serializing ActiveRecord objects into json?</p>
  
  <p>If not, what's the best way to do this?
  Thanks</p>