I have a a few parameters that I am trying to build a deep-nested json object from ie: company.address.city company.address.state
Here are my params:
{"business_type"=>"company", "company.address.city"=>"Gold Coast", "company.address.line1"=>"123 fake street", "company.address.state"=>"QLD", "company.name"=>"test"}
I'm expecting something like:
business_type: "company",
company{
address{
city: "Gold Coast",
line1: "123 fake street",
state: "QLD",
},
name: "test"
}