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

Tags: gxdvip/gjson

Tags

v1.6.6

Toggle v1.6.6's commit message
Fix slice out of bounds panic

fixes tidwall#196

v1.6.5

Toggle v1.6.5's commit message
Update the match package

This commit updates the match package to v1.0.3, which includes
a fix to an issue where a pattern with lots of repetitive stars
will increasingly slow down a Match operation.

Fixes tidwall#195

v1.6.4

Toggle v1.6.4's commit message
Fix bounds out of range panic

This commit fixes an issues where gjson panics when the input json
or path ends in incomplete quoted string.

fixes tidwall#192

v1.6.3

Toggle v1.6.3's commit message
Better safe integer range for numbers

This commit optimizes the safe float to int conversion function
by using the full -9007199254740991 to 9007199254740991 range as
suggested at:

https://tc39.es/ecma262/#sec-number.min_safe_integer

closes tidwall#174

v1.6.2

Toggle v1.6.2's commit message
Adjusted test

v1.6.1

Toggle v1.6.1's commit message
Updated pretty package

v1.6.0

Toggle v1.6.0's commit message
Remove custom appengine and js builds

This commit allows for gjson and sjson to be supported in
WebAssembly `wasm` projects, but breaks compatibility for
anyone using gjson with older Google App Engine and GopherJS.

v1.5.0

Toggle v1.5.0's commit message
Added new modifiers

`@flatten` Flattens an array with child arrays.
  [1,[2],[3,4],[5,[6,7]]] -> [1,2,3,4,5,[6,7]]
The {"deep":true} arg can be provide for deep flattening.
  [1,[2],[3,4],[5,[6,7]]] -> [1,2,3,4,5,6,7]
The original json is returned when the json is not an array.

`@join` Joins multiple objects into a single object.
  [{"first":"Tom"},{"last":"Smith"}] -> {"first","Tom","last":"Smith"}
The arg can be "true" to specify that duplicate keys should be preserved.
  [{"first":"Tom","age":37},{"age":41}] -> {"first","Tom","age":37,"age":41}
Without preserved keys:
  [{"first":"Tom","age":37},{"age":41}] -> {"first","Tom","age":41}
The original json is returned when the json is not an object.

`@valid` Ensures that the json is valid before moving on. An
empty string is returned when the json is not valid, otherwise
it returns the original json.

v1.4.0

Toggle v1.4.0's commit message
Removed unmarshalling

v1.3.6

Toggle v1.3.6's commit message
Removed unneeded comment