by
0
6
3,245
1
Top 1% !
Popular
Famous
Specified
Refined
OpenSource
Popularity: 4063rd place
Created
Modified Oct 27, 2013

Published on:

No tags for this snippet yet.
.NETFramework4.0
Architecturex86_64
Extension.cs
LanguageCSharp
LicenseMIT_X11
MethodNameInitJSONUtils
OSWindows
OutputTypefastJSON.JSON

Initialize FastJson utility

Basic settings to initialize an instance of FastJson to serialize C# objects in JSON
Copy Embed Code
<iframe id="embedFrame" style="width:600px; height:300px;"
src="https://www.snip2code.com/Embed/11817/Initialize-FastJson-utility?startLine=0"></iframe>
Click on the embed code to copy it into your clipboard Width Height
Leave empty to retrieve all the content Start End
public static fastJSON.JSON InitJSONUtils() { fastJSON.JSON res = fastJSON.JSON.Instance; res.SerializeNullValues = true; res.ShowReadOnlyProperties = true; res.UseUTCDateTime = true; res.IndentOutput = false; res.UsingGlobalTypes = true; res.UseSerializerExtension = false; return res; }
If you want to be updated about similar snippets, Sign in and follow our Channels

blog comments powered by Disqus