Skip to content

字典支持动态添加key-value吗 #12

@bigsquirrel

Description

@bigsquirrel

我想读取json后在代码重将其解析成key-value的结构,发现并不能做到。
比如json中,
"user":[{"name":"xiaoming", "age":18},{"name":"xiaohong", "age":20}]
想在代码中转成

"xiaoming":18
"xiaohong":20

的结构。
发现没法做到。

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