Transforms a JS key:value array into a valid query string: ?categoryId[]=4&color[]=red&color[]=blue&price=150