json

package
v0.0.0-...-c05fae0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package json implements a request decoder and a response encoder for JSON data. When this package is imported the encoder and decoder are automatically registered.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(r io.Reader, _ mediatype.MediaType, v any) (err error)

Decode reads JSON data from r into v.

func Encode

func Encode(w io.Writer, v any) error

Encode marshals 'v' to JSON, automatically escaping HTML.

Types

This section is empty.

Jump to

Keyboard shortcuts

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