gjson icon indicating copy to clipboard operation
gjson copied to clipboard

Get JSON values quickly - JSON parser for Go

Results 89 gjson issues
Sort by recently updated
recently updated
newest added

How to convert interface{} to gjson.Result

Exists method of Result type returns true if it is of array type. Empty square brackets are considered as values and it returns true. A simple check is introduced to...

I would like to be able to make Result types myself from non-json sources for use with Result.Less, etc, without having to use Parse(). Since Result's members are exported it's...

Thank you very much for the JSON library, and it's useful for us. JSON navigation and JSON query is nice, and we see the regex pattern is missing in the...

I have a need for an Equal comparison for Results. Now I am simulating it with ! r1.Less(r2) && !r2.Less(r1) but that does not seem very performant. The == operator...

Given the following JSON: ```json [ {"a!=e": 10}, {"a!=e": 20} ] ``` It seems to not be possible to query for say all items with the value of `"a!=e"` greater...

I currently have some JSON in which I do the following Get on: ``` gjson.Get(json, "panels.#.targets.#.expr") ``` Next I just do a recursive function to basically update the value of...

I've been struggling with @join, and multipaths, and not sure if either can do this: from the Murphys example, emit: ``` [ { "movie": "Deer Hunter", "friend": "Dale" }, {...

I have a JSON with dates fields like: * "end": "2017-01-01" * "built-date": "2016-06-30T15:53:44.461+02:00" and I want to query the JSON using ``, or `==` on dates. I think this...

Is it possible to search based on a value for being null or empty ? in other words when a value is not being set all and want to filter...