Skip to content

Requester: Invalid JSON from dict references #648

@ppcad

Description

@ppcad

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions