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

feature request: json sink mapper: support json array and object #1778

Open
rzorzorzo opened this issue Apr 1, 2022 · 0 comments
Open

feature request: json sink mapper: support json array and object #1778

rzorzorzo opened this issue Apr 1, 2022 · 0 comments

Comments

@rzorzorzo
Copy link

Description:
currently the json sink mapper supports only primitive types (string, int, ...)
other data types, such as lists are ignored silently.
pls add support for lists and objects
maybe log a warning for unsupported data types.

thus for example:

select list:collect(..) as listData
insert into OutStream

@sink (type ... @Map('json'))
define OutStream(listData object)

would create something like:
{event:{listData:[{...},...]}

as workaround i am currently converting the list to a string and then in the receiver i then have to parse the string to get the required list.

Affected Siddhi Version:
5.1.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant