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 Input get key name and value by attribute index #4395

Open
kleysonr opened this issue Oct 7, 2024 · 1 comment
Open

Comments

@kleysonr
Copy link

kleysonr commented Oct 7, 2024

What would you like to happen?

I would like to set a jsonPath in JSON Input to get the key name and key value for a given attribute index.

For example, considering the json below and the following jsonPaths:

{
    "doc.tipo": "XG",
    "pk_dt_update": "2024-09-13 08:55:16.954",
    "pk_orgao": "ssx",
    "pk_base_dados": "XG",
    "pk_documento": "0000",
    "tipo_registro": "dados",
    "tipo_documento": "pf"
}
key_name: $.[0].name()
key_value: $.[0]

I would like to have:

key_name: "doc.tipo"
key_value: "XG"

Issue Priority

Priority: 3

Issue Component

Component: Transforms

@FLYFLU
Copy link

FLYFLU commented Nov 18, 2024

What would you like to happen?

I would like to set a jsonPath in JSON Input to get the key name and key value for a given attribute index.

For example, considering the json below and the following jsonPaths:

{
    "doc.tipo": "XG",
    "pk_dt_update": "2024-09-13 08:55:16.954",
    "pk_orgao": "ssx",
    "pk_base_dados": "XG",
    "pk_documento": "0000",
    "tipo_registro": "dados",
    "tipo_documento": "pf"
}
key_name: $.[0].name()
key_value: $.[0]

I would like to have:

key_name: "doc.tipo"
key_value: "XG"

Issue Priority

Priority: 3

Issue Component

Component: Transforms
use [] to resolve this,config in hop like $.['doc.tipo']

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

No branches or pull requests

2 participants