class ActiveModel::Serializer::Adapter::FlattenJson < ActiveModel::Serializer::Adapter::Json def serializable_hash(options = {}) super.each_value.first end private # no-op: FlattenJson adapter does not include meta data, because it does not support root. def include_meta(json) json end end