I’m pasting valid JSON, as far as I can tell, into the data field when creating a launch variable in debugger mode. Every time I click out of the field, it automatically puts quotes around this.
Please see the video here to see it live in action. I would really like to know how to fix this.
Hi @StilMan25,
Thanks for the Loom!
That’s the default behavior of launch variables in the Debugger. If you’re passing the data to a Custom Function, make sure the function parses it and converts it into a valid JSON array.
That helps a lot Alex… I will give it a try and let you know.
Alex, I’ve created a parsing action in my custom function which is designed to and tried passing the JSON in the debugger both with a stringified properly formatted JSON object and a single line version of the JSON object.
This was fraught with problems, so I have taken a different approach and now created a caller workflow before it comes into my API handler workflow and using the caller workflow to create a proper JSON object.
I removed my block which was using a custom function to properly set the launch variable, and all of that is now working very well.
I do believe there was an opportunity to significantly improve the debugger input screen for launch variables to accept proper JSON objects.
1 Like