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 type parameter specifies the primitive type of the data.
-
The fileName parameter specifies the name of the file to read.
-
The usePresentationClient parameter specifies where the file is to be read. It specifies true if the file is to be read on the presentation client and the JADE process is a thin client; otherwise the file will be read from the same node where the logic is executing (an application server, a server, or a client for a standard (fat) client process).
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.
2016.0.01 and higher