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,
	bool camelCase)

Return Value

null on error otherwise the Xml String.

Parameters

value
Value to serialize

throwExceptions
Determines if a failure throws or returns null

formatJsonOutput
camelCase

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-2024 • Updated: 06/29/24
Comment or report problem with topic