Allowing parameter name to have "[" in ASP.Net Core WEB API

Viewed 528

My action method should look like:

 public IActionResult GetAll([FromQuery]string page[Number],[FromQuery]string page[Size])
  {
     //code
  }

HTTP Request is like: "GetAll?page%5Bnumber%5D=0&page%5Bsize%5D=100".

Problem : the parameter name doesn't allow me to have a square bracket.

1 Answers
Related