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

Nested field declaration references to wrong item #15

Open
haba713 opened this issue Mar 23, 2020 · 2 comments
Open

Nested field declaration references to wrong item #15

haba713 opened this issue Mar 23, 2020 · 2 comments

Comments

@haba713
Copy link

haba713 commented Mar 23, 2020

Nested field declaration does not work if child item has the same key name than its parent and parent key is introduced after child in JSON data.

final String json = '['
    '{ "sub": { "id": "A-sub" }, "id": "A" },'
    '{ "sub": { "id": "B-sub" }, "id": "B"  } '
    ']';
var columns = [
  JsonTableColumn("id", label: "Id"),
  JsonTableColumn("sub.id", label: "Sub Id")
];

Expected result:

Id   Sub Id
--   ------
A    A-sub 
A    B-sub 

Actual result:

Id   Sub Id
--   ------
A    A
A    B
@apgapg
Copy link
Owner

apgapg commented Mar 24, 2020

Looks weird. I already use it in my project. Wait will check

@haba713
Copy link
Author

haba713 commented Apr 22, 2020

Wait will check

Hi apgapg! Any progress?

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