How to get ServiceStack to format Guids with dashes when using JSON? How to get ServiceStack to format Guids with dashes when using JSON? json json

How to get ServiceStack to format Guids with dashes when using JSON?


you can override your Guid serializer as

ServiceStack.Text.JsConfig<Guid>.SerializeFn = guid => guid.ToString();