Josh Baker

Results 410 comments of Josh Baker

try `gjson.Parse(myArray)`

There's nothing built into the gjson path syntax for sorting. You'll need to somehow extract the elements as an array of `gjson.Result`, use the `Result.Less` function to compare, and the...

Perhaps for v2. But for now it should be possible to create an custom external function, such as: ```go func toDecimal(r gjson.Result) decimal.Decimal { n, _ := decimal.NewFromString(r.String()) return n...

There's no path validation function. Sorry.

@erenming This is something I'm looking in to. But I don't have an ETA.

Please see #104 > ```go > func (t Result) Exists() bool { > return t.Type != Null || len(t.Raw) != 0 > } > ``` > The expression can be...

Sorry, but I have no plans on adding native support for those at this time.

You can use the pipe character to chain a new path to the result of the first path: ``` friends.#(last=="Murphy")#|#(first=="Dale")# ```

Here's a path that will work. ``` friends|#(last=Murphy)#|#(first=Dale)#|#.cars.make|#.#(name=Audi)#|#.#.models|#.#.#(name=A1)#|0.0.0 ``` I'll break it up into steps delimited by the `|` character. 1. `friends` 1. `#(last=Murphy)#` 1. `#(first=Dale)#` 1. `#.cars.make` 1. `#.#(name=Audi)#`...

Summit is designed to be accessed by trusted clients inside trusted environments. If there's access to the ip/port, then there's full access to the database. This would be a problem...