CFXJsonSerializerSerializeObject Method |
Serializes a CFX object into JSON format
Namespace: CFX.UtilitiesAssembly: CFX (in CFX.dll) Version: 2.0.0+5bb1f71a933ed371a0f5f2d5e7db34c89b75f3ea
Syntaxpublic static string SerializeObject(
Object o,
bool formatted = false
)
Public Shared Function SerializeObject (
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