Josh Baker

Results 411 comments of Josh Baker

Perhaps having a utility function, like `EscapePath` might be useful?

I suspect that this difference in behavior is due to a recent change that allows for reading of `Inf` and `NaN` from #242. The Parse operation does a very quick...

Sorry, but there isn't a built in way to get the full path back.

This is a feature that I believe would be pretty awesome. The main hurdle is that gjson, in most common cases, does not allocate any new memory during a `Get`...

I just pushed an update that includes this feature. ```go const json = ` { "name": {"first": "Tom", "last": "Anderson"}, "age":37, "children": ["Sara","Alex","Jack"], "fav.movie": "Deer Hunter", "friends": [ {"first": "Dale",...

I just added the `@values` and `@keys` modifiers which extract the values and keys from an object. ```json { "1300014": { "code": "1300014", "price": 59.18, "symbol": "300014", "update": "2020/04/15 15:59:54",...

I think this is what you are looking for. ``` #(Attributes.#(Type=="Age"))#|#(Attributes.#(Value==30))# ``` The `#(Attributes.#(Type=="Age"))#` returns the objects that have an Attributes member with Type == "Age" The `|` allows for...

Hi @amirhaouala I would like to help but I'll need more information about what you are trying to achieve. Is your question related to this issue? If not, it would...

Here's another example using a modifier named `@static` that replaces out json that equals `"world"` with the value `true`. ```go package main import "github.com/tidwall/gjson" func main() { gjson.AddModifier("static", func(json, arg...

I think the issue is that the argument should be a valid json value. In your case you’ll probably need to add quotation marks around each arg. https://play.golang.org/p/Y3ATaEDW0LF