Support Angular.JS array multipart post format

The multipart post requests from Angular.JS send the arrays in the json format (like tag_ids=[1,2], not tag_ids[]=1&tag_ids[]=2) which is not getting recognized. If an array or hash is expected while the string is provided, I try to convert it from the JSON.
Found this one using the angular-file-upload gem (https://github.com/danialfarid/angular-file-upload).