Questions tagged [servicestack-text]

ServiceStack.Text is an independent, dependency-free serialization library that contains ServiceStack's text processing functionality

ServiceStack.Text is an independent, dependency-free serialization library that contains ServiceStack's text processing functionality, including:

  • List item
  • JsonSerializer
  • TypeSerializer (JSV-Format)
  • CsvSerializer
  • T.Dump extension method
  • StringExtensions - Xml/Json/Csv/Url encoding, BaseConvert, Rot13, Hex escape, etc.
  • Stream, Reflection, List, DateTime, etc extensions and utils.
212 questions
0
votes
2 answers

Why is no constructor needed of the object, deserialized from a json string, using ServiceStack Json Serializer

I wonder why no constructor is necessary to deserialize a json string into a .Net/C# class object instance. I was surprised that the constructor is not invoked at all and removed it and the deserializer still created an object instance from the json…
Matt
  • 7,004
  • 11
  • 71
  • 117
-2
votes
1 answer

ServiceStack: Any easy way or option to sanitize string values?

I am wondering if there are any options to 'trim' and 'set null if empty' on string values in the incoming DTOs when deserializing? I have a lot of string properties I need to do this, so doing this in the filters manually for every property seems…
icube
  • 2,578
  • 1
  • 30
  • 63
1 2 3
14
15