JsonSerializationUtils.Serialize

Serializes an object to an XML string. Unlike the other SerializeObject overloads this methods returns a string rather than a bool result!

public static string Serialize(object value,
	bool throwExceptions,
	bool formatJsonOutput)

Return Value

null on error otherwise the Xml String.

Parameters

value
Value to serialize

throwExceptions
Determines if a failure throws or returns null

formatJsonOutput

Remarks

If null is passed in null is also returned so you might want to check for null before calling this method.


See also:

Class JsonSerializationUtils

© West Wind Technologies, 1996-2016 • Updated: 12/12/15
Comment or report problem with topic