{"repo":"valyala/fastjson","free":true,"listed":false,"github":"https://github.com/valyala/fastjson","clone":"git clone https://github.com/valyala/fastjson.git","description":"Fast JSON parser and validator for Go. No custom structs, no code generation, no reflection","language":"Go","stars":2465,"topics":["json-parser","fast","golang","go","json","json-validation"],"license":"MIT","category":"dev-tools","readme_excerpt":"fastjson - fast JSON parser and validator for Go Features Fast. As usual, up to 15x faster than the standard encoding/json. See benchmarks. Parses arbitrary JSON without schema, reflection, struct magic and code generation contrary to easyjson. Provides simple API. Outperforms jsonparser and gjson when accessing multiple unrelated fields, since fastjson parses the input JSON only once. Validates the parsed JSON unlike jsonparser and gjson. May quickly extract a part of the original JSON with Value.Get(...).MarshalTo and modify it with Del and Set functions. May parse array containing values with distinct types (aka non-homogenous types). For instance, fastjson easily parses the following JSON array [123, \"foo\", [456], {\"k\": \"v\"}, null] . fastjson preserves the original order of object items when calling Object.Visit. Known limitations Requies extra care to work with - references to certain objects recursively returned by Parser must be released before the next call to Parse. Otherwise the program may work improperly. The same applies to objects returned by Arena. Adhere recommendations from docs. Cannot parse JSON from io.Reader . There is Scanner for parsing stream of JSON values from a string. Usage One-liner accessing a single field: Accessing multiple fields with error handling: See also examples. Security fastjson shouldn't crash or panic when parsing input strings specially crafted by an attacker. It must return error on invalid input JSON. fastjson requires up to sizeo","default_branch":null,"files":null,"tree":[],"storefront":"/r/valyala","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/valyala/fastjson/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."}