Tags: wyk930826/gjson
Tags
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.
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
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
PreviousNext