Share via


JsonUtility.JsonEncode method

Encode the string into JavaScript Object Notation (JSON).

Namespace:  Microsoft.SharePoint.JsonUtilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Shared Function JsonEncode ( _
    s As String _
) As String
'Usage
Dim s As String
Dim returnValue As String

returnValue = JsonUtility.JsonEncode(s)
public static string JsonEncode(
    string s
)

Parameters

Return value

Type: System.String
Returns String.

See also

Reference

JsonUtility class

JsonUtility members

Microsoft.SharePoint.JsonUtilities namespace