json

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Exports = _p0.Exports{
	{N: "decode", T: _p0.Func, F: _decode},
	{N: "encode", T: _p0.Func, F: _encode},
	{N: "pretty", T: _p0.Func, F: _pretty},
}

Functions

func ParseJSON

func ParseJSON(r io.Reader) (nitro.Value, error)

func ToJSON

func ToJSON(v nitro.Value, prefix, indent string) ([]byte, error)

Types

type EncodeOptions

type EncodeOptions struct {
	Indent string
	Prefix string
}

func (*EncodeOptions) FromMap

func (m *EncodeOptions) FromMap(v *_p2.Object) error

Jump to

Keyboard shortcuts

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