Skip to content

Fix JSON Parsing Issue in Variable Substitution #4165

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

iEgit
Copy link
Contributor

@iEgit iEgit commented Mar 12, 2025

returnVal is later parsed as JSON, so we need to ensure that the variable values are properly stringified. Previously, special characters (e.g., newlines) in variables like { hello: "this \n breaks" } would cause parsing issues.

Changes
• Properly stringify variableValue to maintain JSON validity.
• Prevent unwanted JSON parsing errors caused by special characters.

Testing
• Tested with variables containing special characters (e.g., newlines).
• Verified that returnVal remains correctly formatted for JSON parsing.

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

Successfully merging this pull request may close these issues.

1 participant