parsePrimitive(json: String; type: PrimType): Any;
The parsePrimitive method of the JadeJson class parses JSON text for a primitive type and returns the primitive type value.
The json parameter specifies the source string to parse. The type parameter specifies the primitive type of the data.
The return value is the primitive value of the parsed JSON string.
Calling this method parses the string in terms of the passed primitive type and returns the primitive type value represented.
JSON text for a primitive type does not include the type of the data. For a primitive value, the caller must know the type of the data represented in JSON text.
An exception is generated if the text cannot be parsed successfully.