A Rails extension for creating JSON hashes for Active Record classes