It is unclear from your question how exactly you are ending the data, but this will not matter a lot.
Regardless of the format (query params, JSON body) it is the job of the backend to parse and validate the request.
So even if you send a parameter like “active=true”, it is still a string, this is how the HTTP protocol works.
Hope this helps clarify the mystery.