Skip to content

使用gjson 替代gson.JSON #1175

Open
Open
@pengdaCN

Description

@pengdaCN

gson 只是将返回值转为go的对象,不能提供获取原始值的能力,若我需要将返回值的某一个字段序列化,使用提供的Unmarshal 函数则会失败。
若使用gjson,则可以做到,而且gjson 会更加灵活

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhanceNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions