generateJsonFile

generateJsonFile(source:                Any;
                 format:                Integer;
                 fileName:              String;
                 usePresentationClient: Boolean);

The generateJsonFile method of the JadeJson class generates JSON from a primitive type variable or an object and writes the output to a file.

The generateJsonFile method parameters are:

Calling this method generates the JSON text for the source type in Microsoft or NewtonSoft format. A file is created and the generated JSON text is written to the file, which is given the file name specified in the fileName parameter. It is written to the presentation client or onto the JADE logic execution node. The file name should be an absolute path.

The generateJsonFile method does not create any referenced directories.

For details about creating the JSON, see the generateJson method.

2016.0.01 and higher