Share via


JsonSerializerExtensions.Stringify Method

.NET Framework 4

Serializes the specified object to a JSON string.

Namespace:  Microsoft.AspNet.SignalR.Json
Assembly:  Microsoft.AspNet.SignalR.Core (in Microsoft.AspNet.SignalR.Core.dll)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function Stringify ( _
    serializer As IJsonSerializer, _
    value As Object _
) As String
'Usage
Dim serializer As IJsonSerializer 
Dim value As Object 
Dim returnValue As String 

returnValue = serializer.Stringify(value)
public static string Stringify(
    this IJsonSerializer serializer,
    Object value
)
[ExtensionAttribute]
public:
static String^ Stringify(
    IJsonSerializer^ serializer, 
    Object^ value
)
static member Stringify : 
        serializer:IJsonSerializer * 
        value:Object -> string
public static function Stringify(
    serializer : IJsonSerializer, 
    value : Object
) : String

Parameters

Return Value

Type: System.String
A JSON string representation of the object.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IJsonSerializer. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=vs.100) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.100).

See Also

Reference

JsonSerializerExtensions Class

Microsoft.AspNet.SignalR.Json Namespace