Вопрос

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?

Это было полезно?

Решение

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.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top