Commit Graph

5 Commits

Author SHA1 Message Date
Josh Baker d87100011f Added benchmarks comparing other libraries. See #3 2016-11-21 14:07:39 -07:00
Josh Baker a47c1e938e Added ReplaceInPlace Option
Allows for replacing the input byte slice instead of allocating new
memory.
2016-10-25 12:42:02 -07:00
Josh Baker e6094ca119 Optimistic Set
Added the Option type with the Optimistic field. This field can be
used when the caller expects that a value at the specified path
already exists. The Set operation will used `gjson.Get` on the
full path to the value and replace it with the new value.

If Optimistic is specified but the value is not found, then the
normal Set operation is used.

Using Optimistic can speed up a Set operation by as much as 4x.
2016-10-25 11:10:26 -07:00
Josh Baker 39c9d6d25d added delete function 2016-10-20 12:06:19 -07:00
Josh Baker 4e588076ed first commit 2016-10-18 19:06:50 -07:00