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

Requester: Invalid JSON from dict references #648

Open
ppcad opened this issue Aug 15, 2024 · 0 comments
Open

Requester: Invalid JSON from dict references #648

ppcad opened this issue Aug 15, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@ppcad
Copy link
Collaborator

ppcad commented Aug 15, 2024

The requester can send JSON data and it is able to reference data from the event:

json:
    field: ${message}

This works as expected if message is a string.

However, the reference is not converted into valid JSON if the referenced data from the event is a dict:

json:
    field: ${some_dict}

some_dict = {"foo": "bar"} is converted to "{'foo': 'bar'}". This string can not be parsed to JSON without preprocessing it or using ast_eval.

Do you think this could be changed so that dict references are sent as valid JSON?

@ppcad ppcad added the enhancement New feature or request label Aug 15, 2024
@ekneg54 ekneg54 removed their assignment Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants