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

Implement expression to escape JSON #3056

Closed
AYesman opened this issue Aug 12, 2022 · 0 comments · Fixed by #3057
Closed

Implement expression to escape JSON #3056

AYesman opened this issue Aug 12, 2022 · 0 comments · Fixed by #3057
Labels
feature New feature or request
Milestone

Comments

@AYesman
Copy link
Contributor

AYesman commented Aug 12, 2022

Is your feature request related to a problem? Please describe.
using in request body the following construction:

Given request body:
{
"query":" {
    cores
    { archivedDate }
    }"
}

leads to error message:

{
  "statusCode": 400,
  "message": "Unexpected token \n in JSON at position 13",
  "error": "Bad Request"
}

Workaround is to write request body in a single line, which is inappropriate for big queries

Describe the solution you'd like
Add expression to escape all chars from variable/string

Describe alternatives you've considered
to write request body in a single line

@AYesman AYesman added the feature New feature or request label Aug 12, 2022
@valfirst valfirst added this to the 0.4.15 milestone Aug 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants