JadeJson Methods

The methods defined in the JadeJson class are summarized in the following table.

Method Description
generateJson Generates JSON from a primitive type variable or an object
generateJsonDynamic Generates JSON from the value of type Any specified in the source parameter
generateJsonFile Generates JSON from a primitive type variable or an object, and writes the output to a file
isJsonEqual Returns true if the specified JSON strings are semantically equivalent
isJsonValid Returns true if the specified JSON string is valid
parse Parses JSON text to create and populate an object and all referenced objects
parseDynamic Generates a series of linked JadeJsonObject objects and JadeAnyArray arrays that accurately represent the passed in JSON data structure
parseFile Reads and parses JSON text from a file to create and populate an object and all referenced objects
parsePrimitive Parses JSON text for a primitive type and returns the primitive type value
parsePrimitiveFile Parses JSON text for a primitive type from a file and returns the primitive type value
setOffsetForTimeStamps

Sets the behavior for date and time conversions during parsing

sanitizeJsonStringValue

Sanitizes the specified string value and returns a string value that can be used as part of a JSON string