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
414
June 26, 2018
add :root option to ActiveModel JSON serialization
rubyonrails-core
patch
0
299
April 9, 2010
Feature: hash options for only, methods and include to_json options
rubyonrails-core
0
169
July 25, 2013
Rails shouldn't output invalid JSON by default
rubyonrails-core
2
137
October 4, 2007
undefined method keys for ActiveRecord::Relation when executing to_json
rubyonrails-talk
4
430
October 5, 2011