title: Rails 3 - How to Create a JSON Object to store in the database
body: <p>I'm creating an AuditLog observer that watches over several models.</p>
  
  <p>I'd like the observer to have an after_create, which creates a JSON object that is stored in a database column. It will contain data like {photoid:123, photoname: "asdasd", creator_id: "asdasd"} etc...</p>
  
  <p>In Rails, how do I create this type of JSON object and then how do I insert it into the DB along with other non-JSON fields?</p>
  
  <p>Thanks</p>