badjson

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2023 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(content []byte) (any, error)

Types

type JSONArray

type JSONArray []any

func (JSONArray) MarshalJSON

func (a JSONArray) MarshalJSON() ([]byte, error)

func (*JSONArray) UnmarshalJSON

func (a *JSONArray) UnmarshalJSON(content []byte) error

type JSONObject

type JSONObject struct {
	linkedhashmap.Map[string, any]
}

func (JSONObject) MarshalJSON

func (m JSONObject) MarshalJSON() ([]byte, error)

func (*JSONObject) UnmarshalJSON

func (m *JSONObject) UnmarshalJSON(content []byte) error

Jump to

Keyboard shortcuts

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