return raw json when we parse the request body

This commit is contained in:
Alfonso Uceda Pompa 2015-12-24 17:09:33 +01:00
parent e39770b433
commit 8c0ea21d44
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ class Kemal::ParamParser
body = @request.body as String
case json = JSON.parse(body)
case json = JSON.parse(body).raw
when Hash
json.each do |k, v|
@params[k as String] = v as AllParamTypes