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

JsConfig.BeginScope and custom type serializer

JsConfig.BeginScope allows me to customize serialization for specific operation without affecting global config. However, how do I provide custom SerializeFn for specific type for the duration of the scope? It seems JsConfig< T > is always static…
Sumrak
  • 3,740
  • 7
  • 31
  • 37
0
votes
1 answer

SerializationException on one machine and not on another

I am using Visual Studio 2013 and TFS for a project. My colleague and I have machines with Windows 8.1 and Windows 8 respectively, both pointing to same database. Both machines have latest .NET framework installed. Till now all was fine, until I…
Chaitanya Gadkari
  • 2,669
  • 4
  • 30
  • 54
0
votes
1 answer

ServiceStack.Text StackOverflowException with Parent/Children circular references

Serialization of simple (1:1) parent/child circular references works, as noted in mythz answer here. However, I am getting a StackOverflowException when trying to serialize a parent with a list of children who hold a ref back to their parent. I…
user4275029
0
votes
1 answer

ServiceStack.Text DynamicJson fails to parse an array

Running the following code: var s = @"{ ""simple"": ""value"", ""obj"": { ""val"":""test"" }, ""array"": []"; var dyn =…
Alex
  • 1,366
  • 19
  • 22
0
votes
1 answer

ServiceStack date deserialization error

On ServiceStack.Text version 4.0.38 ServiceStack.Text.Common.DateTimeSerializer.ParseShortestXsdDateTime("9/10/2015") Works ServiceStack.Text.Common.DateTimeSerializer.ParseShortestXsdDateTime("09/10/2015") Don't work Input string was not in a…
0
votes
1 answer

Control ServiceStack deserialization of POST variable and store in object

I would like to deserialize a post variable using ServiceStack's built in deserialization. But, I would like to make two changes that will provide me with some flexibility for another problem that I am attempting to solve. …
0
votes
1 answer

ServiceStack and Stripe

I'm using the ServiceStack Stripe package, but it seems the serializer for the GetStripeCustomer method doesn't parse the Subscription Status correctly. In the JSON I can see that the Status is "past_due", but when ServiceStack converts it to…
vonec
  • 681
  • 10
  • 22
0
votes
1 answer

Exception while evaluating service stack text for iOS

I'm trying to evaluate servicestack.text in tamarin project. I've created test iOS app and added to packages ServiceStack.Client 4.0.35 However it fails with exception on this simple code: var t = new List { "a", "b" }; var s…
Roman Kagan
  • 464
  • 1
  • 3
  • 12
0
votes
1 answer

How to return inner array of items from $http / JSON with AngularJS?

I'm trying to return the items from a JSON response and cannot figure out the syntax. The response is a custom ServiceStack DTO (notice the inner array, called "Items"): {"Items":[{"Id":"ABC1234","Name":"Tests-TestItem01","Desc":"Test Item…
Ryan D'Baisse
  • 837
  • 11
  • 29
0
votes
1 answer

ServiceStack's SerializeFn custom serializer/deserializers - sticks across requests?

I'm using ASP.Net with MVC, and would like to have custom SerializeFn for only certain requests. It looks like the JsConfig stuff is static, and I do see the JsConfig.BeginScope() stuff to keep the config scoped, but it doesn't seem to apply to the…
Nicholas Head
  • 3,716
  • 5
  • 27
  • 39
0
votes
1 answer

jsconfig register custom de/serialization for an (tagging) interface

How can i configure Json De/Serialization to use a custom function for a specific type or subclassed types. I expected that registering a specific De/Serialization function will also be used for subclassed or type that implement the…
Marco
  • 337
  • 3
  • 10
0
votes
2 answers

servicestack serialize to json with function

I've got a c# helper class that declares a javascript component including a javascript function name. new Button({Label = "Execute", OnClick = "ExecuteFunction"}); This should create a json text: { label = "Execute", onClick =…
Marco
  • 337
  • 3
  • 10
0
votes
1 answer

ServiceStack.Text reflection issue on Mono 3.4.0

I am running ServiceStack API (4.0.22) on Mono 3.4.0 and using the async web services on a self hosted application and I am getting the following error: { ResponseStatus: { ErrorCode: "ArgumentNullException", Message: "Argument…
Ollie
  • 1,140
  • 8
  • 26
0
votes
1 answer

ServiceStack.Text reading json results not working

I am just trying to figure out the best way to deserialize a json string returned from a 3rd party api call. I read ServiceStack is fast so want to try it out. No experience and here is what I have done: Opened Visual Studio 2013 Created new…
0
votes
0 answers

ServiceStack.Text Not Serializing Dictionary

I'm having a problem storing an object containing a dictionary using ServiceStack.Redis. The object that I'm trying to store is defined as below: public class Feed { public Guid ID { get; set; } public String Title { get; set; } public…
Richard Comish
  • 197
  • 2
  • 20