flogo
flogo copied to clipboard
Support JSON with the MQTT Trigger
I'm submitting a ... (check one with "x")
[] bug report => search github for a similar issue or PR before submitting
[x] feature request
[] support request
[] general question
Current behavior (how does the issue manifest): MQTT messages are normally JSON ... but the MQTT trigger output a string Expected behavior: output a "object" type when required Minimal steps to reproduce the problem (not required if feature enhancement): revieve a message and try to find a way to parse it to an object What is the motivation / use case for changing the behavior? make FLOGO easier to use with JSON data Please tell us about your environment (Operating system, docker version, browser & web ui version, etc):
Flogo version (CLI & contrib/lib. If unknown, leave empty or state unknown): 0.X.X 0.5.5 Additional information you deem important (e.g. issue happens only occasionally): Very
@ayh20 assuming the message
from the trigger is mapped to a flow param of typ object
and message
contains a valid json string, then the engine will coerce the type into the object that the flow executes against.
Were you experiencing a different behavior?