<form action="/profile/edit" method="post">
<input type="text" name="[profile][first_name]"/>
<input name="[profile][surname]" type="text"/>
<input type="submit" value="Отправить">
</form>
{
profile:[
first_name:"Some value",
surname:"Some value"
]
}