The requester can send JSON data and it is able to reference data from the event:
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?
The requester can send JSON data and it is able to reference data from the event:
This works as expected if
messageis a string.However, the reference is not converted into valid JSON if the referenced data from the event is a dict:
some_dict = {"foo": "bar"}is converted to"{'foo': 'bar'}". This string can not be parsed to JSON without preprocessing it or usingast_eval.Do you think this could be changed so that dict references are sent as valid JSON?