共用方式為


ClientRuntimeContext.ParseObjectFromJsonString Method

Parses the specified JavaScript Object Notation (JSON) string and gets an object from it.

Namespace:  Microsoft.SharePoint.Client
Assemblies:   Microsoft.SharePoint.Client.Silverlight.Runtime (in Microsoft.SharePoint.Client.Silverlight.Runtime.dll);  Microsoft.SharePoint.Client.Runtime (in Microsoft.SharePoint.Client.Runtime.dll)

Syntax

'Declaration
Public Function ParseObjectFromJsonString ( _
    json As String _
) As Object
'Usage
Dim instance As ClientRuntimeContext
Dim json As String
Dim returnValue As Object

returnValue = instance.ParseObjectFromJsonString(json)
public Object ParseObjectFromJsonString(
    string json
)

Parameters

Return Value

Type: System.Object
The object parsed from the JSON string.

Remarks

This method creates an object from the specified JSON string, which can contain an object creation expression such as "new SP.Guid()" or "new Date()".

See Also

Reference

ClientRuntimeContext Class

ClientRuntimeContext Members

Microsoft.SharePoint.Client Namespace