That is sent from a mobile application to my rails application:
{"c2array":true,"size":[3,3,1],"data":[[[0],[1],[2]],[[1],[2],[3]],[[2],[3],[4]]]}
But for some reason I'm getting the request like this:
{
"{\"c2array\":true,\"size\":"=>
{"3,3,1"=>
{",\"data\":"=>
{"0"=>
{","=>
{"1"=>
{","=>
{"2"=>
{","=>
{"1"=>
{","=>
{"2"=>
{","=>
{"3"=>
{","=>
{"2"=>
{","=>
{"3"=>
{","=>{"4"=>{"}"=>nil}}}}}}}}}}}}}}}}}}}},
"action"=>"create",
"controller"=>"maps"
}
I need to save it in my database, but I honestly do not know why that json is deformed in this way or how I can treat it for what I need.
Note: Both params 'action' and 'controller' are part of my framework so the problem is just the way my json arrives.