In my API call, I want to pass range parameters as arrays like this:
This is how I am trying to pass this array to the API:
if (this.price_filter_value = 'Under Rs. 1 Lakh') {
// this.final_price[0] = [0, 10000];
// this.final_price[1] = [0, 200000]
this.final_price = [[0, 10000], [0, 200000]];
}
this.getPortfolioList(this.space_filter_value, this.lifeStage_filter_value, this.theme_filter_value, this.final_price, this.current_page, this.per_page, this.serachedspace);
}
But the API is price range is getting called like this not in array.
Please tell me a approach so that i can pass range as array in Api.