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

Seems there is not support for nested json dictionary #163

Open
arvtiwar opened this issue Oct 1, 2021 · 0 comments
Open

Seems there is not support for nested json dictionary #163

arvtiwar opened this issue Oct 1, 2021 · 0 comments

Comments

@arvtiwar
Copy link

arvtiwar commented Oct 1, 2021

I have a JSON list as below, trying to convert it to a data frame. seems there is no way to process "issues.totalCount"? Is it possible to flatten the issues object?

I am using "df := dataframe.ReadJSON(strings.NewReader(nodeJsonStr))" to read and create data frame.

Thanks for any suggestions

[
{
"id": "myid47",
"issues": {
"totalCount": 13,
"uniqueEntityCount": 13
},
"name": "namemyid47",
"gravity": "CRITICAL"
},
{
"id": "myid152",
"issues": {
"totalCount": 5,
"uniqueEntityCount": 5
},
"name": "namemyid152",
"gravity": "CRITICAL"
},
{
"id": "myid62",
"issues": {
"totalCount": 3,
"uniqueEntityCount": 3
},
"name": "namemyid62",
"gravity": "CRITICAL"
},
{
"id": "myid142",
"issues": {
"totalCount": 144,
"uniqueEntityCount": 144
},
"name": "namemyid142",
"gravity": "HIGH"
},
{
"id": "myid4",
"issues": {
"totalCount": 32,
"uniqueEntityCount": 32
},
"name": "namemyid4",
"gravity": "HIGH"
},
{
"id": "myid60",
"issues": {
"totalCount": 21,
"uniqueEntityCount": 21
},
"name": "namemyid60",
"gravity": "HIGH"
},
{
"id": "myid146",
"issues": {
"totalCount": 1527,
"uniqueEntityCount": 1527
},
"name": "namemyid146",
"gravity": "MEDIUM"
},
{
"id": "myid6",
"issues": {
"totalCount": 888,
"uniqueEntityCount": 888
},
"name": "namemyid6",
"gravity": "MEDIUM"
},
{
"id": "myid5",
"issues": {
"totalCount": 520,
"uniqueEntityCount": 520
},
"name": "namemyid5",
"gravity": "MEDIUM"
}
]

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