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

using filter.whitelist for nested value #72

Open
fadlymutil opened this issue Jul 4, 2022 · 2 comments
Open

using filter.whitelist for nested value #72

fadlymutil opened this issue Jul 4, 2022 · 2 comments

Comments

@fadlymutil
Copy link

Hi There,

i am having problem when using configuration filters.whitelist for nested value,

my json document value part ;

"resPayload": [
  "{ \"timestamp\":1611882445, \"status\":200, \"errors\":{ \"identity_photo\":\"invalid\" }, \"data\":{ \"name\":true, \"birthdate\":true, \"birthplace\":true, \"address\":\"M*MP*NG\",\"selfie_photo\":80}}"
]

when i use this configuration, i got all value from resPayload field,
"filters.whitelist" : "apiName;resPayload",

but when i do this, i only get value apiName field, none from resPayload field
"filters.whitelist" : "apiName;resPayload.status",

how do i get only some field value i needed from resPayload

anyone can help me?
really appreciate your response.

@DarioBalinzo
Copy link
Owner

Hi,
The problem is that resPayload is not a nested json document, but it is an array of strings.

For this reason, you cannot get resPayload.status

Dario

@fadlymutil
Copy link
Author

Hi Dario,

is it still possible to filter resPayload ? can you share how to do it?
for now i get all the value of resPayload, and cost large size of messages transfered to kafka,
it will be great if i can take out the field i dont needed which has large size (images)

thanks.

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

2 participants