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
2
votes
1 answer

ServiceStack Redis does not run on AWS Lambda

I am trying to leverage AWS Elasticache (Redis) from my Lambda function using the ServiceStack .Redis.Core library (version 1.0.44). When running the lambda from my local machine (mac osx) everything works fine; I can interact with the AWS Redis…
2
votes
1 answer

Retrieving exceptions when ReplyTo is a temp queue

Our application uses temporary queues to direct service bus responses to the originating caller. We use the built-in ServiceStack.RabbitMq.RabbitMqServer to publish and handle messages. Message> message =…
David
  • 1,143
  • 7
  • 9
2
votes
1 answer

ServiceStack return custom response when can't deserialize request

I'm using servicestack to handle xml request from client, my client require always send response like that: 01 20450 How can I response…
2
votes
0 answers

ServiceStack.Text CSV serialization of IEnumerable ignores custom serialization functions
Firstly, please forgive any rookie mistakes here - I'm not a regular poster I'm afraid. Now on to the nitty gritty... I am trying to use ServiceStack.Text to serialize objects to CSV. If I keep it simple, everything works as expected when…
2
votes
1 answer

How do I encode angle brackets in servicestack json response

I have a customer who wants to ensure that responses from our JSON web service do not contain HTML. So instead of returning a string containing angle brackets they want encoded angle brackets. Two questions: if I return content type…
David Churchland
  • 292
  • 2
  • 11
2
votes
1 answer

ServiceStack - Dynamic/Object in DTO

I am running into an issue while looking at SS. I am writing a custom Stripe implementation and got stuck on web hooks, this in particular: https://stripe.com/docs/api#event_object data->object - this can be anything. Here is my DTO for it: public…
Danny Huyn
  • 21
  • 2
2
votes
1 answer

Alter output of ServiceStack.Text JSON Deserializer

I'm currently using the Newtonsoft.json nuget package but I'd like to find a faster alternative. ServiceStack.Text seems to parse it, but it's returning the JSON in a different format that I'm expecting. Is there anyway to change the format in…
LampShade
  • 2,675
  • 5
  • 30
  • 60
2
votes
1 answer

ServiceStack.Text set JsConfig on application start

I set JsConfig in Application_Start method in my asp net mvc application protected void Application_Start() { JsConfig.DateHandler = JsonDateHandler.ISO8601; JsConfig.EmitCamelCaseNames = true; } and then I…
netwer
  • 737
  • 11
  • 33
2
votes
2 answers

ServiceStack Serialize and Deserialize Dictionary with Objects

I have a very weird problem here pertaining to ServiceStack.Text's serializer. Suppose I have two classes, one called Person and another called Address. Person: public class Person { public string Name { get; set; } public…
CozyAzure
  • 8,280
  • 7
  • 34
  • 52
2
votes
1 answer

Deserialize CSV with ServiceStack.Text

I'm trying to use ServiceStack.Text for deserializing a csv file containing ";" as the seperator. The test csv contains this data --------------- | Col1 | Col2 | --------------- | Val1 | Val2 | --------------- | Val3 | Val4…
Kai-Rune
  • 462
  • 6
  • 17
2
votes
1 answer

ServiceStack ORMLite not deserializing JSON stored in DB text field

I have some telemetry data that was stored in a text field as JSON. I'm attempting to reverse-engineer POCOs to seamlessly extract and present that data without having to do any post-processing ForEach loops. When I attempt to manually parse the…
jklemmack
  • 3,518
  • 3
  • 30
  • 56
2
votes
1 answer

ServiceStack.Text System.TypeInitializationException using JsonSerializer.DeserializeFromString

I'm porting a Xamarin.IOS project to the Unified version of it and I'm facing an issue using the ServiceStack.Text package. I've added it to the project using NuGet. So I made a new empty project on Xamarin to test it and the problem remains the…
Daniele P.
  • 228
  • 4
  • 16
2
votes
1 answer

ServiceStack : Serialize long number to string

In my C# code, I have a long variable like public long ID { get; set; } Now when ServiceStack returns it to Web browser, it is serialized as { "id" : 97786707294275442 } This is wrong because long has a range of 2^63 in C# But in Javascript,…
Mr.Wang from Next Door
  • 13,670
  • 12
  • 64
  • 97
2
votes
1 answer

ServiceStack.Text and DeserializeFromString where Json names are illegal

I've been using ServiceStack.Text DeserializeFromString for a long time, but in a new project I've hit an issue. The JSON I need to parse to objects has the following…
Chris W
  • 1,792
  • 15
  • 32
2
votes
1 answer

Is there a Json library that works with both array of objects and array of abstract classes?

I need read/write Json from/to a POCO that is decorated with XmlSerialization attributes. This POCO has been generated from an XSD. It makes extensive use of polymorphism, inheritance, objects, arrays of objects and array of abstract classes. I've…
anon