gjson
gjson copied to clipboard
How to get all the keys and values of json through wildcards
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"}
}
have you tried using the GetMany function? looks like it should do what you want.