Debian Codegraph @

debian/control

raw
1 Source: golang-github-valyala-fastjson
2 Section: golang
3 Maintainer: Debian Go Packaging Team <[email protected]>
4 Uploaders:
5 Guillem Jover <[email protected]>,
6 Build-Depends:
7 debhelper-compat (= 13),
8 dh-sequence-golang,
9 golang-any,
10 Testsuite: autopkgtest-pkg-go
11 Standards-Version: 4.7.4
12 Vcs-Browser: https://salsa.debian.org/go-team/packages/golang-github-valyala-fastjson
13 Vcs-Git: https://salsa.debian.org/go-team/packages/golang-github-valyala-fastjson.git
14 Homepage: https://github.com/valyala/fastjson
15 XS-Go-Import-Path: github.com/valyala/fastjson
16
17 Package: golang-github-valyala-fastjson-dev
18 Architecture: all
19 Multi-Arch: foreign
20 Depends:
21 ${misc:Depends},
22 Description: fast JSON parser and validator for Go (library)
23 No custom structs, no code generation, no reflection.
24 .
25 Features:
26 * Fast. As usual, up to 15x faster than the standard encoding/json.
27 * Parses arbitrary JSON without schema, reflection, struct magic and code
28 generation contrary to easyjson.
29 * Provides a simple API.
30 * Outperforms jsonparser and gjson when accessing multiple unrelated fields,
31 since fastjson parses the input JSON only once.
32 * Validates the parsed JSON unlike jsonparser and gjson.
33 * May quickly extract a part of the original JSON with
34 Value.Get(...).MarshalTo and modify it with Del and Set functions.
35 * May parse array containing values with distinct types (aka non-homogenous
36 types). For instance, fastjson easily parses the following JSON array
37 [123, "foo", [456], {"k": "v"}, null].
38 * fastjson preserves the original order of object items when calling
39 Object.Visit.
40 .
41 Known limitations:
42 * Requies extra care to work with - references to certain objects
43 recursively returned by Parser must be released before the next call to
44 Parse. Otherwise the program may work improperly. The same applies to
45 objects returned by Arena.
46 * Cannot parse JSON from io.Reader.
47 .
48 Security:
49 * fastjson shouldn't crash or panic when parsing input strings specially
50 crafted by an attacker. It must return error on invalid input JSON.
51 * fastjson requires up to sizeof(Value) * len(inputJSON) bytes of memory
52 for parsing inputJSON string. Limit the maximum size of the inputJSON
53 before parsing it in order to limit the maximum memory usage.