문제

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