Consider the following:

  • It may be more convenient to create a node_response.json file in a text editor, leaving the DataFile parameters blank, and save the file in the same folder as the script. After starting the scripting node, the script can read in the generic node_response.json, add the path of the text files in the temporary folder, and write the updated node_response.json to the temporary folder.
  • Use the rjsonio library to load the pre-made node_response.json file, and fill in the details as mentioned previously.