Open Chaofan34 opened 3 months ago
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
prefix_b
{ "prefix_a": {"a": "1"}, "prefix_b": {"b": "2"} }
have you tried using the GetMany function? looks like it should do what you want.
example i want to use gjson.Get(jsonStr, "prefix_*"), get the value from
prefix_a
andprefix_b
, but only get result {"a":"1"}