Skip to content

Incorrect result for transform expression #96

@MaciejHadam

Description

@MaciejHadam

Hi,

For json

{
        "model": {
          "customer": {
            "identityDocumentNumber": "ABC123456",
            "identityDocumentType": "ID_CARD"
          }
        }
      }

Jsotana with transform expression

($~>|$|$.model|)@$.
                  ({
                      "documentIdentityNumber": customer.identityDocumentNumber,
                      "documentIdentityType": customer.identityDocumentType
                  })

return incorrect value:
{}
but the correct value for jsonata js is:
{"documentIdentityNumber":"ABC123456","documentIdentityType":"ID_CARD"}

Thanks for help and patch.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions