jsonquery
jsonquery copied to clipboard
JSON xpath query for Go. Golang XPath query for JSON query.
In the sibling [xmlquery](https://github.com/antchfx/xmlquery) package, the Node struct has public methods; `SelectElement(name string) *Node` and `SelectElements(name string []*Node` jsonquery by comparison only has SelectElement. Given both packages export the global...
Team, I have tried parsing this json ``` { "module": { "ABCD": { "source": "", "version": "", "location": "", "resource_group_name": "" } }, "module": { "PQRS": { "source": "", "version":...
Hello, Evaluating your lib, i noticed that when the field name contains un @ it seems not to work properly (json-ld file) ``` nodes := jsonquery.QuerySelectorAll(doc, xpath.MustCompile("//*[@type='TVEpisode']")) ``` Regards
Right now the JSON is parsed using `json.Unmarshal()` with no way to customize how it is parsed. However, for some use cases it could be useful to parse with `UseNumber()`...
Sorry for the offensive title, but I do not know how to describe it otherwise. My issue is with this line: `Node{Data: fmt.Sprintf("%v", v), Type: TextNode, level: level, value: fmt.Sprintf("%v",...