Skip to content

How to get all the keys and values ​​of json through wildcards #353

Open
@Chaofan34

Description

example
i want to use gjson.Get(jsonStr, "prefix_*"), get the value from prefix_a and prefix_b, but only get result {"a":"1"}

{
  "prefix_a": {"a": "1"},
  "prefix_b": {"b": "2"}
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions