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

how to deal this data #287

Open
wangjingyu001 opened this issue Nov 8, 2024 · 1 comment
Open

how to deal this data #287

wangjingyu001 opened this issue Nov 8, 2024 · 1 comment

Comments

@wangjingyu001
Copy link

please help me
datax = {
"cid": "6.10", # 外层字段
"part1": {
"name": "Alice",
"age": 30
},
"part2": {
"name": "Alice2",
"age": 302
},
"part3": {
"name": "Alice3",
"age": 303
}
} ,
and i want the data to be like this ->

[{
"part_str":"part1",
"name":"Alice",
"Age":30
}
,
{
"part_str":"part2",
"name":"Alice2",
"Age":302
},
{
"part_str":"part3",
"name":"Alice3",
"Age":303
}
]

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