Open Boyy-Next-Door opened 1 year ago
oh! I realized that I need to call Reset() before Find() again!
areaLevel := jq.Find(fmt.Sprintf("data.dynamicConfig.%s.feConfig.areaLevel", req["corpId"].(string)))
areaRange := jq.Reset().Find(fmt.Sprintf("data.dynamicConfig.%s.feConfig.areaRange", req["corpId"].(string)))
I done also lot of ... before found this info. And saw Reset() wiki. I hope you add to the basic examples: a) make more than one query to the source - after readed json file b) how to use query after query without reset
Is there anything wrong in this use case ? ðŸ˜