# File lib/grape/validations/types/json.rb, line 18 def coerce(input) # Allow nulls and blank strings return if input.nil? || input =~ /^\s*$/ JSON.parse(input, symbolize_names: true) end