Click or drag to resize
UtilityToJson Method
Serializes and returns as json the specified object.

Namespace: OpenIIoT.SDK.Common
Assembly: OpenIIoT.SDK (in OpenIIoT.SDK.dll) Version:
public static string ToJson(
	this Object obj


Type: SystemObject
The object to serialize.

Return Value

Type: String
The serialized object.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Object. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also