parse form-data to object

parse from this format:
user[id]=1
user[name]=andre
user[contacts][]=111
user[contacts][]=222