mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-23 14:29:31 +00:00
ArraySerializer can serialize arrays of Hash, ActiveModel::Serializer, or any PORO that responds to :as_json Each item in the array should not include its type as a root element, since normal arrays do not do this. If you want "typed" collections, don't use an Array. |
||
|---|---|---|
| .. | ||
| serializers | ||
| serializer.rb | ||