这是indexloc提供的服务,不要输入任何密码
Skip to content

Tags: gxdvip/gjson

Tags

v1.8.1

Toggle v1.8.1's commit message
Fix escaped strings missing double quote

fixes tidwall#223

v1.8.0

Toggle v1.8.0's commit message
Add tilde boolean operator

This commit adds the new tilde '~' operator, which when used will
convert a value to a boolean before comparison.

For example, using the following JSON:

    {
      "vals": [
        { "a": 1, "b": true },
        { "a": 2, "b": true },
        { "a": 3, "b": false },
        { "a": 4, "b": "0" },
        { "a": 5, "b": 0 },
        { "a": 6, "b": "1" },
        { "a": 7, "b": 1 }
        { "a": 8, "b": "true" },
        { "a": 9, "b": false }
        { "a": 10, "b": null }
        { "a": 11 }
      ]
    }

You can now query for all true(ish) values:

    vals.#(b==~true)#

Which returns:

    [1,2,6,7,8]

Or all false(ish) values:

    vals.#(b==~false)#

Which returns:

    [3,4,5,9,10,11]

The last value which was non-existent is treated as "false"

v1.7.5

Toggle v1.7.5's commit message
Allow escaped string characters in query values

Fixes tidwall#215

v1.7.4

Toggle v1.7.4's commit message
Fix negative without int part for valid

fixes tidwall#210

v1.7.3

Toggle v1.7.3's commit message
Fix non-existent response from multires query on empty array

This commit fixes an issue where a multires query on an empty
array will result in a non-existent (empty string) result.

For example `Get("[]", "#(key=value)#").Raw` resulted in an
empty string. But, it should actually result in the empty
array `[]`.

v1.7.2

Toggle v1.7.2's commit message
Fix mod flatten including non-existent arrays

v1.7.1

Toggle v1.7.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Merge pull request tidwall#209 from zepatrik/bump-pretty

Bump pretty dependency

v1.7.0

Toggle v1.7.0's commit message
Allow chaining multipaths using the dot

v1.6.8

Toggle v1.6.8's commit message
Removed reflect package

This commit removes the reflect package to avoid using the
reflect.SliceHeader and reflect.StringHeader structures. Instead
new sliceHeader and stringHeader stuctures have been added with
the same layout expect that they intentionally expose the data
field as an unsafe.Pointer instead of a uintptr.

v1.6.7

Toggle v1.6.7's commit message
Restrict pretty indent and prefixes to whitespace