parsePrimitiveFile

parsePrimitiveFile(type:                  PrimType;
                   fileName:              String;
                   usePresentationClient: Boolean): Any;

The parsePrimitiveFile method of the JadeJson class parses JSON text for a primitive type from a file and returns the primitive type value.

The parsePrimitiveFile method parameters are:

The return value is the primitive value of the parsed JSON string.

Calling this method reads the indicated file and parses the string in terms of the passed primitive type and returns the primitive type value represented.

An exception is generated if the text cannot be parsed successfully.