Skip to content

Commit 6d4f9de

Browse files
committed
bumbed to 2.26 and added instruction to download via NuGet.
1 parent b8aa157 commit 6d4f9de

8 files changed

Lines changed: 31 additions & 21 deletions

File tree

0 Bytes
Binary file not shown.

NuGet/servicestack.text.nuget

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,20 @@
22
<package>
33
<metadata>
44
<id>ServiceStack.Text</id>
5-
<version>2.20</version>
5+
<version>2.26</version>
66
<authors>Demis Bellot</authors>
77
<owners>Demis Bellot</owners>
8-
<description>.NET's fastest JSON, JSV and CSV Text Serializers</description>
8+
<summary>.NET's fastest JSON, JSV and CSV Text Serializers (3x faster than JSON.NET)</summary>
9+
<description>
10+
.NET's fastest JSON, JSV and CSV Text Serializers (3x faster than JSON.NET).
11+
12+
Small, light, simple and fast.
13+
</description>
914
<projectUrl>https://github.com/ServiceStack/ServiceStack.Text</projectUrl>
1015
<licenseUrl>https://github.com/ServiceStack/ServiceStack.Text/blob/master/LICENSE</licenseUrl>
1116
<iconUrl>http://www.servicestack.net/logo-32x32.png</iconUrl>
1217
<tags>JSON Text Serializer CSV JSV Dump PrettyPrint</tags>
1318
<language>en-US</language>
1419
</metadata>
15-
</package>
20+
</package>
21+

README.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,17 @@ for twitter updates.
44

55
ServiceStack.Text is an independent, dependency-free assembly that contains all of ServiceStack's text processing functionality, including:
66

7-
* JSON Serializer
8-
* CSV Serializer
9-
* TypeSerializer and the JSV-format
10-
* T.Dump() Extension Method
7+
* [JsonSerializer](http://www.servicestack.net/mythz_blog/?p=344)
8+
* [TypeSerializer (JSV-Format)](https://github.com/ServiceStack/ServiceStack.Text/wiki/JSV-Format)
9+
* CsvSerializer
10+
* [T.Dump extension method](http://www.servicestack.net/mythz_blog/?p=202)
11+
* StringExtensions - Xml/Json/Csv/Url encoding, BaseConvert, Rot13, Hex escape, etc.
12+
* Stream, Reflection, List, DateTime, etc extensions and utils
13+
14+
## NuGet ServiceStack.Text
15+
16+
![Install-Pacakage ServiceStack.Text](http://servicestack.net/img/nuget-servicestack.text.png)
17+
1118

1219
## ServiceStack.JsonSerializer - the fastest JSON Serializer for .NET
1320
For reasons outlined [in this blog post](http://www.servicestack.net/mythz_blog/?p=344) I decided to re-use *TypeSerializer's* text processing-core to create ServiceStack.JsonSerializer - the fastest JSON Serializer for .NET.

build/ServiceStack.Text.2.26.nupkg

160 KB
Binary file not shown.

src/ServiceStack.Text/Env.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ static Env()
2323
+ (IsMonoTouch ? " MonoTouch" : "");
2424
}
2525

26-
public static decimal ServiceStackVersion = 2.22m;
26+
public static decimal ServiceStackVersion = 2.26m;
2727

2828
public static bool IsUnix { get; set; }
2929

src/ServiceStack.Text/JsonSerializer.cs

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,9 @@ public static void SerializeToWriter<T>(T value, TextWriter writer)
8181

8282
public static void SerializeToStream<T>(T value, Stream stream)
8383
{
84-
using (var writer = new StreamWriter(stream, UTF8EncodingWithoutBom))
85-
{
86-
JsonWriter<T>.WriteObject(writer, value);
87-
}
84+
var writer = new StreamWriter(stream, UTF8EncodingWithoutBom);
85+
JsonWriter<T>.WriteObject(writer, value);
86+
writer.Flush();
8887
}
8988

9089
public static T DeserializeFromStream<T>(Stream stream)
@@ -136,10 +135,9 @@ public static void SerializeToWriter(object value, Type type, TextWriter writer)
136135

137136
public static void SerializeToStream(object value, Type type, Stream stream)
138137
{
139-
using (var writer = new StreamWriter(stream, UTF8EncodingWithoutBom))
140-
{
141-
JsonWriter.GetWriteFn(type)(writer, value);
142-
}
138+
var writer = new StreamWriter(stream, UTF8EncodingWithoutBom);
139+
JsonWriter.GetWriteFn(type)(writer, value);
140+
writer.Flush();
143141
}
144142
}
145143
}

src/ServiceStack.Text/Properties/AssemblyInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@
3232
// You can specify all the values or you can default the Build and Revision Numbers
3333
// by using the '*' as shown below:
3434
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("2.2.2.*")]
35+
[assembly: AssemblyVersion("2.2.6.*")]
3636
//[assembly: AssemblyFileVersion("1.0.0.0")]

src/ServiceStack.Text/TypeSerializer.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,9 @@ public static T Clone<T>(T value)
108108

109109
public static void SerializeToStream<T>(T value, Stream stream)
110110
{
111-
using (var writer = new StreamWriter(stream, UTF8EncodingWithoutBom))
112-
{
113-
JsvWriter<T>.WriteObject(writer, value);
114-
}
111+
var writer = new StreamWriter(stream, UTF8EncodingWithoutBom);
112+
JsvWriter<T>.WriteObject(writer, value);
113+
writer.Flush();
115114
}
116115

117116
public static T DeserializeFromStream<T>(Stream stream)

0 commit comments

Comments
 (0)