CFXJsonSerializerSerializeObjectWithTypes Method |
Serializes a CFX object into JSON format, including type information
Namespace: CFX.UtilitiesAssembly: CFX (in CFX.dll) Version: 2.1.1+880255d2f7380f340f56b243a51d99f2136bdae3
Syntaxpublic static string SerializeObjectWithTypes(
Object o,
bool formatted = false
)
Public Shared Function SerializeObjectWithTypes (
o As Object,
Optional formatted As Boolean = false
) As String
Parameters
- o Object
- The object to be serialized
- formatted Boolean (Optional)
- If true, the resultant JSON will be formatted for easy human interpretation (whitespace and carriage returns added)
Return Value
StringA string representing the CFX object in JSON format
See Also