Converts an object to a JSON string representation.
Namespace:
TinyJson
Assembly:
Ptv.XServer.Controls.Map (in Ptv.XServer.Controls.Map.dll) Version: 1.7.10.0
Syntax public static string ToJson(
this Object item
)
<ExtensionAttribute>
Public Shared Function ToJson (
item As Object
) As String
public:
[ExtensionAttribute]
static String^ ToJson(
Object^ item
)
[<ExtensionAttribute>]
static member ToJson :
item : Object -> string
Parameters
- item
- Type: SystemObject
Object which should be converted to a JSON string representation.
Return Value
Type:
String JSON string representation of the input 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