json

package
v21.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

This package encapsulates the JSON library used by the sidecar query server.

Instead of using the standard library's JSON library, we use jsoniter. jsoniter is a drop-in replacement for the standard library's JSON library. It is faster than the standard library's JSON library.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Marshal

func Marshal(v interface{}) ([]byte, error)

func Unmarshal

func Unmarshal(data []byte, v interface{}) error

Types

type Decoder

type Decoder = jsoniter.Decoder

func NewDecoder

func NewDecoder(r io.Reader) *Decoder

type Marshaler

type Marshaler = json.Marshaler

type RawMessage

type RawMessage = jsoniter.RawMessage

type Unmarshaler

type Unmarshaler = json.Unmarshaler

Jump to

Keyboard shortcuts

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