evantahler/actionHero — pull request #197 by dunse (2013-08-06 23:19:19+00:00)
Title: Better handling of deep hash json in POST

This patch allows actionHero to maintain structure of the POSTed JSON data.
POSTed JSON:
{
"one": {
"two": {
"three": [
"ar1",
"ar2"
]
}
}
}

With this patch, the result will be:
params.one = {
"two": {
"three": [
"ar1",
"ar2"
]
}
}

Sample:
curl -XPOST -H "Content-Type: application/json" http://localhost:8080/api/one -d '{"one":{"two":{"three":["ar1","ar2"]}}}'
>> params: {"one":{"two":{"three":["ar1","ar2"]}},"action":"oneAdd","limit":100,"offset":0,"apiVersion":1}