共用方式為


SP.ClientRuntimeContext.parseObjectFromJsonString(json) Method

Applies to: SharePoint Foundation 2010

In this article
Return Value
Applies To
Remarks

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

var value = SP.ClientRuntimeContext.parseObjectFromJsonString(json);

Parameters

  • json
    The String object that represents the string in JSON format.

Type: String

Return Value

Type: Object

Applies To

SP.ClientRuntimeContext Class

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

SP.ClientRuntimeContext Methods

SP.ClientRuntimeContext Properties

SP Namespace