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

Incoherent processing of nested data with arrays and non-arrays #492

Open
mebibou opened this issue Aug 27, 2024 · 0 comments
Open

Incoherent processing of nested data with arrays and non-arrays #492

mebibou opened this issue Aug 27, 2024 · 0 comments

Comments

@mebibou
Copy link

mebibou commented Aug 27, 2024

There is an incoherent processing of the following data:

Case 1:

test.id,test.values.value,test.values.0.id
1,foo,bar

which converts to:

[
  {
    "test": {
      "id": "1",
      "values": {
        "0": {
          "id": "bar"
        },
        "value": "foo"
      }
    }
  }
]

Case 2:

test.id,test.values.0.id,test.values.value
1,bar,foo

which converts to:

[
  {
    "test": {
      "id": "1",
      "values": [
        {
          "id": "bar"
        }
      ]
    }
  }
]

Those 2 CSV are basically the same, I only inverted column 2 and 3, and it gives different result. It seems because the array is parsed first, test.values.value is simply being ignored

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