SP.ClientContext.parseObjectFromJsonString method (sp.js)

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

Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013

SP.ClientContext.parseObjectFromJsonString(json, skipTypeFixup)

Parameters

  • json
    String
    The string that specifies an object.

  • skipTypeFixup
    Boolean
    true to skip the data conversion or false to set the type to its internal object type and, in the case of an array, to add the values from one array to another array.

Return value

The object parsed from the JSON string.

Remarks

The parseObjectFromJsonString method is inherited from the SP.ClientRuntimeContext object. This method creates an object from the specified JSON string, which can contain an object-creation expression such as "new SP.Guid()".

See also

Other resources

SP.ClientContext