ServiceStack.Text   .NET's missing high-performance utility belt

JSON, JSV, CSV, Http Utils, Auto Mapping, Dump Utils, .NET type extensions + more...

Write terse, intuitive, beautiful code that packs a punch:

var orgName = "ServiceStack";

var orgRepos = $"https://api.github.com/orgs/{orgName}/repos"
    .GetJsonFromUrl(httpReq => httpReq.UserAgent = "ServiceStack.Text")
    .FromJson<List<GithubRepository>>();

"Writing {0} Github Repositories:".Print(orgName);
orgRepos.PrintDump(); 

var csvFilePath = "~/{0}-repos.csv".Fmt(orgName).MapAbsolutePath();
File.WriteAllText(csvFilePath, orgRepos.ToCsv());

Process.Start(csvFilePath);

Write this GitHub organization repository info out to a .csv spreadsheet:

  1. HTTP Utils - DRY, intuitive, convenience API's around .NET's WebRequest
  2. JSON Serializer
  3. Print() String extension
  4. Dump Utils - recursive, pretty-format dump of any C# POCOs
  5. MapAbsolutePath() String extension
  6. CSV Serializer
  7. View new .csv in spreadsheet viewer

 

Deep inside all of ServiceStack's premium libraries lies a high-performance core containing all of ServiceStack's super text powers. Centered around .NET's fastest full-featured JSON Serializer is a convenient utility belt containing 100's of extensions enhancing .NET's built-in String, Stream, Bytes, List, Dictionary, Reflection, Task, WebRequest types and more.

Download for Free!

PM> Install-Package ServiceStack.Text

Signed version:

PM> Install-Package ServiceStack.Text.Signed

Android, iOS, Windows Store, WPF and Silverlight clients should install the PCL compatible:

PM> Install-Package ServiceStack.Client

 

High-level libraries

Stripe

A typed .NET client gateway for accessing Stripe's REST API to process merchant payments and recurring subcriptions online.

PM> Install-Package ServiceStack.Stripe