Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit ecc42e0

Browse files
committed
Merge master branch from SS.Text
2 parents a9f2936 + 71341d8 commit ecc42e0

34 files changed

+281
-254
lines changed

NuGet.Core/ServiceStack.Text.Core/servicestack.text.core.nuspec

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,15 @@
99
<summary>.NET's fastest JSON, JSV and CSV Text Serializers</summary>
1010
<description>
1111
.NET's fastest JSON, JSV and CSV Text Serializers. Fast, Light, Resilient.
12-
Benchmarks at: http://servicestack.net/benchmarks/
13-
Includes the String and Stream functionality for all the ServiceStack projects including:
14-
- T.Dump() generic extension method for easy dbugging and introspection of types
15-
- WebRequest, List, Dictionary and DateTime extensions
16-
17-
To revert back to the previous BSD ServiceStack v3, see https://github.com/ServiceStackV3/ServiceStackV3
12+
Contains ServiceStack's high-performance text-processing powers, for more info see: https://servicestack.net/text
1813
</description>
1914
<projectUrl>https://github.com/ServiceStack/ServiceStack.Text</projectUrl>
2015
<licenseUrl>https://servicestack.net/terms</licenseUrl>
2116
<requireLicenseAcceptance>true</requireLicenseAcceptance>
2217
<iconUrl>https://servicestack.net/img/logo-32.png</iconUrl>
2318
<tags>JSON Text Serializer CSV JSV Dump PrettyPrint Fast</tags>
2419
<language>en-US</language>
25-
<copyright>ServiceStack 2015 and contributors</copyright>
20+
<copyright>ServiceStack 2016 and contributors</copyright>
2621
<dependencies>
2722
<group targetFramework=".NETStandard1.1">
2823
<dependency id="System.Linq.Expressions" version="[4.1.0, )" />

NuGet.Pcl/ServiceStack.Text.Pcl/servicestack.text.pcl.nuspec

Lines changed: 0 additions & 26 deletions
This file was deleted.

NuGet.Signed/ServiceStack.Text.Signed/servicestack.text.signed.nuspec

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,15 @@
99
<summary>.NET's fastest JSON, JSV and CSV Text Serializers</summary>
1010
<description>
1111
.NET's fastest JSON, JSV and CSV Text Serializers. Fast, Light, Resilient.
12-
Benchmarks at: http://servicestack.net/benchmarks/
13-
Includes the String and Stream functionality for all the ServiceStack projects including:
14-
- T.Dump() generic extension method for easy dbugging and introspection of types
15-
- WebRequest, List, Dictionary and DateTime extensions
12+
Contains ServiceStack's high-performance text-processing powers, for more info see: https://servicestack.net/text
1613
</description>
1714
<projectUrl>https://github.com/ServiceStack/ServiceStack.Text</projectUrl>
1815
<licenseUrl>https://servicestack.net/terms</licenseUrl>
1916
<requireLicenseAcceptance>true</requireLicenseAcceptance>
2017
<iconUrl>https://servicestack.net/img/logo-32.png</iconUrl>
2118
<tags>JSON Text Serializer CSV JSV Dump PrettyPrint Fast</tags>
2219
<language>en-US</language>
23-
<copyright>ServiceStack 2013 and contributors</copyright>
20+
<copyright>ServiceStack 2016 and contributors</copyright>
2421
</metadata>
2522
<files>
2623
<file src="lib\**\*.*" target="lib" />

README.md

Lines changed: 49 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,58 @@
11
Join the [ServiceStack Google+ Community](https://plus.google.com/communities/112445368900682590445) or follow [@ServiceStack](https://twitter.com/servicestack) for updates.
22

3-
# [JSON](https://github.com/ServiceStackV3/mythz_blog/blob/master/pages/344.md), [JSV](https://github.com/ServiceStackV3/mythz_blog/blob/master/pages/176.md) and [CSV](https://github.com/ServiceStack/ServiceStack/wiki/CSV-Format) Text Serializers used in [servicestack.net](http://www.servicestack.net).
3+
## FREE high-perf Text Serializers and Core Utils powering [servicestack.net](https://servicestack.net)
44

5-
ServiceStack.Text is an **independent, dependency-free** serialization library that contains ServiceStack's text processing functionality, including:
5+
ServiceStack.Text is a **independent, dependency-free** serialization library containing ServiceStack's core high-performance utils and text processing functionality, including:
66

7-
* [JsonSerializer](https://github.com/ServiceStackV3/mythz_blog/blob/master/pages/344.md)
8-
* [TypeSerializer (JSV-Format)](https://github.com/ServiceStack/ServiceStack.Text/wiki/JSV-Format)
9-
* [CsvSerializer](https://github.com/ServiceStack/ServiceStack/wiki/CSV-Format)
10-
* [T.Dump extension method](https://github.com/ServiceStackV3/mythz_blog/blob/master/pages/202.md)
11-
* StringExtensions - Xml/Json/Csv/Url encoding, BaseConvert, Rot13, Hex escape, etc.
12-
* Stream, Reflection, List, DateTime, etc extensions and utils
7+
- [JSON](https://github.com/ServiceStack/ServiceStack.Text),
8+
[JSV](https://github.com/ServiceStack/ServiceStack.Text/wiki/JSV-Format) and
9+
[CSV](https://github.com/ServiceStack/ServiceStack/wiki/CSV-Format) Text Serializers
10+
- [AutoMapping Utils](https://github.com/ServiceStack/ServiceStack/wiki/Auto-mapping)
11+
- [HTTP Utils](https://github.com/ServiceStack/ServiceStack/wiki/Http-Utils)
12+
- [Dump Utils](https://github.com/ServiceStack/ServiceStack/wiki/Dump-Utils)
13+
- Several String Extensions, Collection extensions, Reflection Utils and lots more.
1314

14-
# Simple API
15+
### Try out [ServiceStack.Text Live](http://gistlyn.com/text)
16+
17+
A great way to try out ServiceStack.Text is on [gistlyn.com](http://gistlyn.com) which lets you immediately
18+
run and explore all ServiceStack.Text features from the comfort of your browser with zero software install:
19+
20+
[![](https://raw.githubusercontent.com/ServiceStack/Assets/master/img/livedemos/gistlyn/home-screenshot.png)](http://gistlyn.com/text)
21+
22+
## Simple API
1523

1624
Like most of the interfaces in Service Stack, the API is simple. Methods that you would commonly use include:
1725

26+
### Convenience Serialization Extension Methods
27+
28+
```csharp
29+
string ToJson(T)
30+
T FromJson()
31+
32+
string ToJsv(T)
33+
T FromJsv()
34+
35+
string ToCsv(T)
36+
T FromCsv()
37+
38+
string ToXml(T)
39+
T FromXml()
40+
```
41+
42+
### Explicit API
43+
1844
```csharp
1945
string TypeSerializer.SerializeToString<T>(T value)
2046
void TypeSerializer.SerializeToWriter<T>(T value, TextWriter writer)
2147

2248
T TypeSerializer.DeserializeFromString<T>(string value)
2349
T TypeSerializer.DeserializeFromReader<T>(TextReader reader)
2450
```
25-
26-
Where *T* can be any .NET POCO type. That's all there is - the API was intentionally left simple :)
27-
28-
### Dynamic JSON parsing API
2951

30-
```csharp
31-
JsonObject.Parse()
32-
JsonArrayObjects.Parse()
33-
```
34-
35-
### Extension Methods
52+
Where *T* can be any .NET POCO type. That's all there is - the API was intentionally left simple :)
3653

37-
```csharp
38-
T FromJson()
39-
string ToJson(T)
54+
### Dump Utils
4055

41-
T FromJsv()
42-
string ToJsv(T)
43-
```
44-
4556
Dump / Diagnostic Extensions:
4657

4758
```csharp
@@ -50,7 +61,14 @@ T Print()
5061
T PrintDump()
5162
string Fmt(args)
5263
```
53-
64+
65+
### Dynamic JSON parsing API
66+
67+
```csharp
68+
JsonObject.Parse()
69+
JsonArrayObjects.Parse()
70+
```
71+
5472
URL Extensions:
5573

5674
```csharp
@@ -63,22 +81,23 @@ string UrlFormat() / AppendPath() / AppendPaths() / WithTrailingSlash()
6381
string WithoutExtension() / ParentDirectory() / ReadAllText()
6482
```
6583

66-
Stream Extensions:
84+
#### Stream Extensions:
6785

6886
```csharp
6987
Stream WriteTo(Stream) / CopyTo()
7088
Stream ReadLines()
7189
Stream ReadFully() / ReadExactly()
7290
```
7391

74-
String Utils:
92+
#### String Utils:
7593

7694
```csharp
7795
string SplitOnFirst() / SplitOnLast()
7896
string IndexOfAny()
7997
string StripHtml() / ToCamelCase()
8098
string SafeSubstring()
8199
string ToUtf8Bytes() / FromUtf8Bytes()
100+
string LeftPart() / LastLeftPart() / RightPart() / LastRightPart()
82101
```
83102

84103
more String, Reflection, List, Dictionary, DateTime extensions...
@@ -101,7 +120,7 @@ project. It provides a dynamic, but more succinct API than the above options.
101120

102121
PM> Install-Package ServiceStack.Text
103122

104-
_Latest v4+ on NuGet is a [commercial release](https://servicestack.net/text) with [free quotas](https://servicestack.net/download#free-quotas)._
123+
> From v4.0.62+ [ServiceStack.Text is now free!](https://github.com/ServiceStack/ServiceStack/blob/master/docs/2016/v4.0.62.md#servicestacktext-is-now-free)
105124
106125
### [Docs and Downloads for older v3 BSD releases](https://github.com/ServiceStackV3/ServiceStackV3)
107126

lib/ServiceStack.Client.dll

-512 Bytes
Binary file not shown.

lib/ServiceStack.Common.dll

512 Bytes
Binary file not shown.

lib/ServiceStack.Interfaces.dll

0 Bytes
Binary file not shown.

lib/tests/ServiceStack.Client.dll

-512 Bytes
Binary file not shown.

lib/tests/ServiceStack.Client.pdb

-2 KB
Binary file not shown.
2 KB
Binary file not shown.

0 commit comments

Comments
 (0)