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

Encode parameters that are used in JSON #212

Open
docktermj opened this issue Jun 11, 2024 · 1 comment
Open

Encode parameters that are used in JSON #212

docktermj opened this issue Jun 11, 2024 · 1 comment
Assignees
Labels
go Pull requests that update Go code V4 To be delivered in V4

Comments

@docktermj
Copy link
Contributor

In functions like addDataSource() where a parameter is "stuffed" into JSON, make sure the input string is escaped.

Perhaps use Marshalling to do the escaping.

@docktermj docktermj added the V4 To be delivered in V4 label Jun 11, 2024
@docktermj docktermj self-assigned this Jun 11, 2024
@github-actions github-actions bot added the triage Need to triage label Jun 11, 2024
@docktermj docktermj removed the triage Need to triage label Jun 11, 2024
@docktermj docktermj added the go Pull requests that update Go code label Sep 11, 2024
@docktermj
Copy link
Contributor Author

docktermj commented Sep 13, 2024

Example:

input: "VIP" Guests
output: "VIP" Guests

to put these in code as string literals they would look like this:
input: ""VIP" Guests"
output: "\"VIP\" Guests"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
go Pull requests that update Go code V4 To be delivered in V4
Projects
None yet
Development

No branches or pull requests

1 participant