Ruby on Rails Discussions
ActiveModel::Serializers::JSON support arbitrary keys
rubyonrails-core
carlosantoniodasilva
(Carlos Antonio)
June 21, 2012, 3:42pm
1
Just linking the related discussion on issues tracker:
https://github.com/rails/rails/issues/6811
Related topics
Topic
Replies
Views
Activity
attr_json: Very smooth models-within-models serialized to json in ActiveRecord
rubyonrails-talk
0
413
June 26, 2018
add :root option to ActiveModel JSON serialization
rubyonrails-core
patch
0
296
April 9, 2010
Feature: hash options for only, methods and include to_json options
rubyonrails-core
0
166
July 25, 2013
Rails shouldn't output invalid JSON by default
rubyonrails-core
2
131
October 4, 2007
undefined method keys for ActiveRecord::Relation when executing to_json
rubyonrails-talk
4
423
October 5, 2011