Skip to content

Tags: wyk930826/gjson

Tags

v1.14.1

Toggle v1.14.1's commit message
Remove encoding/json dependency

The only purpose of using the built-in Go was to encode json
strings that had unicode or needed to escaped.

This commit adds the new function `AppendJSONString` which allows
for appending strings as their json representation to a byte
slice.

It's about 2x faster than using json.Marshal.

v1.14.0

Toggle v1.14.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Update SYNTAX.md

v1.13.0

Toggle v1.13.0's commit message
Add tostr and fromstr modifiers

For wrapping and unwrapping json strings

v1.12.1

Toggle v1.12.1's commit message
Set array index as key for ForEach

See tidwall#248

v1.12.0

Toggle v1.12.0's commit message
Fix modifier bug in multipath selector

Closes tidwall#253

v1.11.0

Toggle v1.11.0's commit message
Added Path and Paths for getting the original path of a Result

This commit adds a two new functions of the Result type:

- Result.Path:  Returns the original path of a `Result` that was
                returned from a simple `Get` operation.
- Result.Paths: Returns the original paths of a `Result` that was
                returned from a `Get` operation with a query.

See issue tidwall#206 for more details

v1.10.2

Toggle v1.10.2's commit message
Fix empty string operator not matching

fixes tidwall#246

v1.10.1

Toggle v1.10.1's commit message
cleanup test

v1.10.0

Toggle v1.10.0's commit message
Added @keys and @values modifiers

The "@keys" and "@values" modifiers converts an object into an
array of its keys or values respectively.

Take this json for example:

{"first":"Tom","last":"Smith"}

@keys   -> ["first","last"]
@values -> ["Tom","Smith"]

This feature was requested in tidwall#161.

v1.9.4

Toggle v1.9.4's commit message
The Array method should return back one item for JSON objects.

This commit fixes an issue where the Array method was not
returning single value arrays when the reciever Result was a
JSON Object.

fixes tidwall#240