How to convert array value to url query params?

This is my array I try to convert to url query params
 ["Ankara","Pursaklar",["10.12.2019","11.12.2019"]] 

expect return
ankara=>location,
pursaklar=>device,
startDate,
endDate
http://localhost:8080/analytics/general?location=[object%20Object]&device=VISIO0242b4aa2bd6&start=2019-09-09%2000%3A00%3A00&end=2019-09-09%2015%3A53%3A01

Hi. If you uses axios you can just give them as an object. Like this:

axios.get('/user', {
    params: {
      ID: 12345
    }
  })
  .then(function (response) {
    console.log(response);
  })