json

package
v1.11.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 13, 2026 License: MIT Imports: 4 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeJson

func DecodeJson[T any](reader io.Reader) (T, error)

func ObjectToBytes

func ObjectToBytes(object any) ([]byte, error)

func ObjectToMap

func ObjectToMap(object any) (map[string]any, error)

Types

This section is empty.

Directories

Path Synopsis
jose
jwe
Package jwe implements JSON Web Encryption (RFC 7516) compact serialization for the ECDH-ES key agreement algorithm (RFC 7518 Section 4.6) with A256GCM content encryption (RFC 7518 Section 5.3), using NIST P-256, P-384 and P-521 keys.
Package jwe implements JSON Web Encryption (RFC 7516) compact serialization for the ECDH-ES key agreement algorithm (RFC 7518 Section 4.6) with A256GCM content encryption (RFC 7518 Section 5.3), using NIST P-256, P-384 and P-521 keys.
jwk
jws
jwt
Package schema validates JSON documents against JSON schemas, supporting draft 2020-12.
Package schema validates JSON documents against JSON schemas, supporting draft 2020-12.
builder
Package builder defines a Builder type that may be used to build a [jsonschema.Schema] step by step.
Package builder defines a Builder type that may be used to build a [jsonschema.Schema] step by step.
draft202012
Package draft202012 defines the keywords used by JSON schema version 2020-12.
Package draft202012 defines the keywords used by JSON schema version 2020-12.
format
Package format defines format checkers for the format keyword.
Package format defines format checkers for the format keyword.
internal/argtype
Package argtype defines a few helpers for schema.ArgType.
Package argtype defines a few helpers for schema.ArgType.
internal/cmd/keywordgen command
keywordgen generates repetitive code for JSON schema keywords.
keywordgen generates repetitive code for JSON schema keywords.
internal/cmd/testgen command
testgen downloads the current testsuite from json-schema-org and updates the tests in the tree.
testgen downloads the current testsuite from json-schema-org and updates the tests in the tree.
internal/cmd/validatorgen command
validatorgen generates validator functions for different schema argument types.
validatorgen generates validator functions for different schema argument types.
internal/schemacache
Package schemacache is a simple in-process cache for schemas that have been parsed.
Package schemacache is a simple in-process cache for schemas that have been parsed.
internal/validator
Package validator contains functions to handle different schema arguments.
Package validator contains functions to handle different schema arguments.
jsonpointer
Package jsonpointer implements JSON pointers for the jsonschema package.
Package jsonpointer implements JSON pointers for the jsonschema package.
notes
Package notes defines a type that holds information passed between keywords during schema validation.
Package notes defines a type that holds information passed between keywords during schema validation.
types
tag

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL