jsonparser
jsonparser copied to clipboard
One of the fastest alternative JSON parser for Go that does not require schema
Hi, Thank you for the amazing library. I have a simple webserver which when gets a list of `n`(n
Hello, Is there any way to convert the data from the request to JSON String using jsonparser? I mean the whole request body and not only 1 key Actually I'm...
Hi, There is a `jsonparser.Unescape` function which escapes special characters according to (https://tools.ietf.org/html/rfc7159#section-7), but there is not any `Escape` function to escape especial chars in the input strings specially for...
Our production machines hit this error after running for a long time (couple of months). Unfortunately we do not have the payload to recreate but I've the stacktrace (I'll add...
Is there a way for the callback to ArrayEach to return errors. ``` _,errr := jsonparser.ArrayEach(bytes, func(... error) { return myerror },...) if errr == myerror ```
I found this when profiling some code that uses jsonparser, and 15% of the total execution time was spent in allocating memory for this buffer. The Go compiler's analysis looks...
Hello! Would it be possible to add the possibility to set the value for each element in the array like this: `jsonparser.Set(jsonBody, []byte("\"\""), "issuesData", "issues", "[]", "extraFields", "[]", "html")` Thanks...
ffjson will generate UnmarshalJSON and MarshalJSON method.If use the std json package, it will run the code here.
Suppose we have following code: ``` result := []Foo{} err := jsonparser.ArrayEach(data, func(value []byte, dataType jsonparser.ValueType, offset int, err error) { if err != nil { return } bars, err...
Extra allocations are done when using an empty `bytes.Buffer` [here](https://github.com/buger/jsonparser/blob/master/parser.go#L478) in `createInsertComponents()`. `bytes.Buffer` uses a normal grow strategy of successively doubling in size. This could be avoided by counting the...