Click or drag to resize
JsonExtensionsToJsonT Method
Serializes the specified object to a JSON string.

Namespace:  RiakClient.Extensions
Assembly:  RiakClient (in RiakClient.dll) Version: f9bb17a3f8ff6940b88010a52f202e3d55fe25c5
Syntax
public static string ToJson<T>(
	this T value
)

Parameters

value
Type: T
The object to serialize.

Type Parameters

T
A value or reference type.

Return Value

Type: String
The object serialized as a JSON string.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type . 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