{"repo":"ohler55/ojg","free":true,"listed":false,"github":"https://github.com/ohler55/ojg","clone":"git clone https://github.com/ohler55/ojg.git","description":"Optimized JSON for Go","language":"Go","stars":953,"topics":["json","jsonpath","parser","golang","fast"],"license":"MIT","category":"dev-tools","readme_excerpt":"Optimized JSON for Go is a high performance parser with a variety of additional JSON tools. OjG is optimized to processing huge data sets where data does not necessarily conform to a fixed structure. Features - Fast JSON parser. Check out the cmd/benchmarks app in this repo. - Full JSONPath implemenation that operates on simple types as well as structs. - Generic types. Not the proposed golang generics but type safe JSON elements. - Fast JSON validator (7 times faster with io.Reader). - Fast JSON writer with a sort option (4 times faster). - JSON builder from JSON sources using a simple assembly plan. - Simple data builders using a push and pop approach. - Object encoding and decoding using an approach similar to that used with Oj for Ruby. - Simple Encoding Notation, a lazy way to write JSON omitting commas and quotes. - JSON and SEN Discovery as a package or option to the oj application. Using A basic Parse: Using JSONPath expressions: The oj command (cmd/oj) uses JSON path for filtering and extracting JSON elements. It also includes sorting, reformatting, discovery of JSON in documents, and colorizing options. More complete examples are available in the go docs for most functions. The example for Unmarshalling interfaces demonstrates a feature that allows interfaces to be marshalled and unmarshalled. Installation or just import in your .go files. To build and install the oj application: The oj application can be installed with brew. Benchmarks Higher numbers (longer bars) ","default_branch":null,"files":null,"tree":[],"storefront":"/r/ohler55","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ohler55/ojg/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}