Pregunta

As shown in answer on this question ServiceStack by default uses JSV format for complex objects when they are passed in QueryString.

Is it possible to set ServiceStack to use "default" JSON instead of JSV? Like instead of doing:

http://server.com/fooservice/servicestack/foo?Color1=blue&Dto={Color2:red}

I would prefer to pass:

http://server.com/fooservice/servicestack/foo?Color1=blue&Dto={"Color2":"red"}

Any way to do that?

¿Fue útil?

Solución

No, only (the more human-friendly) JSV format is supported for deserializing complex types on the QueryString. You can use JSON in HTTP POST's.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top