This topic has not yet been rated - Rate this topic

JsonUtility methods

The JsonUtility type exposes the following members.

  Name Description
Public method Static member DateTicksToJsTicks Converts an Int64 that corresponds to the value of a Ticks property of a DateTime to an Int64 that, when passed into an ECMAScript (JScript, JavaScript) Date object’s setTime method, will result in the ECMAScript Date representing the same date and time as the DateTime.
Public method Static member DeserializeDateTime Converts a serialized date and time to a System.DateTime object, or null if a valid conversion cannot be made.
Public method Static member EncodeFunctionCall Returns a JavaScript Object Notation (JSON) string that, when evaluated in ECMAScript (JScript, JavaScript) by the SP.JsGrid.Deserializer.DeserializeFromJson method will result in the function specified being called with the given arguments.
Public method Static member GetPropertiesToSerializeForType Obsolete. Get properties required to serialize a particular type.
Public method Static member IsValidLeftHandJsonString Obsolete. A Boolean representing whether this is a valid left hand JSON string.
Public method Static member JsonEncode Encode the string into JavaScript Object Notation (JSON).
Public method Static member JsTicksToDateTicks Converts an Int64 that corresponds to the value returned by a call to getTicks on a ECMAScript (JScript, JavaScript) Date to a value that, when used to construct a DateTime, will result in that object representing the same date and time as the ECMAScript Date.
Public method Static member QuoteAndJsonEncode Encodes a string for Json transport and adds quotes around it.
Public method Static member QuoteString Obsolete. Apply quotation marks to the string.
Public method Static member SerializeDateTime Serializes a System.DateTime object to JavaScript Object Notation (JSON).
Public method Static member SerializeToJsonFromProperties Generate JavaScript Object Notation (JSON) serialization by serializing the individual properties of an object.
Public method Static member UnquoteString Obsolete. Remove quotation marks from the given string
Top

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.