| Class | Grape::Validations::Types::JsonArray |
| In: |
lib/grape/validations/types/json.rb
|
| Parent: | Json |
Specialization of the {Json} attribute that is guaranteed to return an array of objects. Accepts both JSON-encoded objects and arrays of objects, but wraps single objects in an Array.
See {Json#coerce}. Wraps single objects in an array.
@param input [String] JSON-encoded parameter value @return [Array<Hash>]