class Grape::Validations::Types::JsonArray

in an Array.
objects and arrays of objects, but wraps single objects
to return an array of objects. Accepts both JSON-encoded
Specialization of the {Json} attribute that is guaranteed

def parse(input)

Returns:
  • (Array) -

Parameters:
  • input (String) -- JSON-encoded parameter value
def parse(input)
  json = super
  Array.wrap(json) unless json.nil?
end

def parsed?(value)

See {Json#coerced_collection?}
def parsed?(value)
  coerced_collection? value
end