Skip to content

[BUG]多维数组转换错误 #14

@lhlyu

Description

@lhlyu

Original Data

{
    "a": 123,
    "b": "xxx",
    "c": [
        [
            1,
            2,
            3
        ],
        [
            1,
            null,
            3
        ]
    ]
}

Result

type RootObject struct {
    A int           `json:"a"`
    B string        `json:"b"`
    C []interface{} `json:"c"`
}

Expect

type RootObject struct {
    A int           `json:"a"`
    B string        `json:"b"`
    C [][]interface{} `json:"c"`
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug漏洞

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions