Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can i put the custom_payload in external file ? #210

Open
johnico opened this issue Jun 27, 2022 · 1 comment
Open

How can i put the custom_payload in external file ? #210

johnico opened this issue Jun 27, 2022 · 1 comment

Comments

@johnico
Copy link

johnico commented Jun 27, 2022

im using a json custom_payload

my question is how can i put the payload in a separate json file and print it but also with all the tags inside

@landtechjoe
Copy link

landtechjoe commented Feb 10, 2023

I wanted to do the same thing - I had a look at the source code and it looks like the text within the custom payload is just eval-ed so I did it by writing the json payload I wanted to a file in a prior step and then setting the custom_payload attribute like this

custom_payload:  JSON.parse(require('fs').readFileSync('pathToFile.json', 'utf8'))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants