FLYFLU commented on issue #4395:
URL: https://github.com/apache/hop/issues/4395#issuecomment-2482406309
> ### 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']
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]