Displaying 1 to 12 from 12 results

jsonparser - Alternative JSON parser for Go that does not require schema (so far fastest)

  •    Go

It does not require you to know the structure of the payload (eg. create structs), and allows accessing fields by providing the path to them. It is up to 10 times faster than standard encoding/json package (depending on payload size and usage), allocates no memory. See benchmarks below.Originally I made this for a project that relies on a lot of 3rd party APIs that can be unpredictable and complex. I love simplicity and prefer to avoid external dependecies. encoding/json requires you to know exactly your data structures, or if you prefer to use map[string]interface{} instead, it will be very slow and hard to manage. I investigated what's on the market and found that most libraries are just wrappers around encoding/json, there is few options with own parsers (ffjson, easyjson), but they still requires you to create data structures.

easyjson - Fast JSON serializer for golang.

  •    Go

Package easyjson provides a fast and easy way to marshal/unmarshal Go structs to/from JSON without the use of reflection. In performance tests, easyjson outperforms the standard encoding/json package by a factor of 4-5x, and other JSON encoding packages by a factor of 2-3x. easyjson aims to keep generated Go code simple enough so that it can be easily optimized or fixed. Another goal is to provide users with the ability to customize the generated code by providing options not available with the standard encoding/json package, such as generating "snake_case" names or enabling omitempty behavior by default.

GJSON - JSON Parser for Go

  •    Go

GJSON is a Go package that provides a fast and simple way to get values from a json document. It has features such as one line retrieval, dot notation paths, iteration.




djson - Fast Go decoder for dynamic JSON

  •    Go

DJSON is a JSON decoder for Go that is 2~ to 3~ times faster than the standard encoding/json and the existing solutions, when dealing with arbitrary JSON payload. It is a good approach for people who are using json.Unmarshal together with interface{}, don't know what the schema is, and still want good performance with minimal changes.

jstream - Streaming JSON parser for Go

  •    Go

jstream is a streaming JSON parser and value extraction library for Go.

jsonui - jsonui is an interactive JSON explorer on your command line

  •    Go

jsonui is an interactive JSON explorer in your command line. You can pipe any JSON into jsonui and explore it, copy the path for each element.


gofasion - A lightweight json parsing library for golang.

  •    Go

Gofasion is a lightweight parsing library that facilitates the parsing of interface JSON data during development. Its biggest feature is to support chained calls, which means that the target key name and key value can be directly obtained without pre-defining the structure of the data. go 1.9 or above is requried.

jqtop - Analyze json logs in realtime

  •    Go

jqtop is a tool to analyze json logs or equivalent stream of inputs in realtime. For now, we don't have rpm/deb packages. Download the latest release binary for your OS at https://github.com/shadyabhi/jqtop/releases.

jsnm - json mapping for map[string]interface{}

  •    Go

方法有:Get PathGet Arr ArrLoc ArrLocs ArrPath,为了对比,提供了不带缓存的方法:NCGet.

ajson - Abstract JSON for golang with JSONPath support

  •    Go

Abstract JSON is a small golang package that provide a parser for JSON with support of JSONPath, in case when you are not sure in it's structure. Method Unmarshal will scan all the byte slice to create a root node of JSON structure, with all it behaviors.