Swagger UI doesn’t know about JSV (or is likely to ever add support for it) and sending JSON on the query string is a really bad idea, it’s tolerable with JSV since it’s white-space significant so typically doesn’t require quotes or spaces.
But I’m not seeing where you’re getting the JSV from, what’s adding the spaces or are you manually creating it?
yes, the point is about how I have to “type” the complex type in the swagger ui (a textbox).
It works if I type jsv … not if I type json
Using the service stack rest client and letting him doing the serialization of the type,…: it does serialiize it in jsv on the query string … and it does work.
JSON is never meant to go on the QueryString. Swagger UI doesn’t support it because most API’s don’t support specifying complex types on the QueryString which ideally should flat key value pairs so they’re interoperable with all HTTP clients.
ServiceStack is unique in letting you use JSV for specifying complex types on the queryString as it’s tolerable to construct by hand.