json

package
v1.7.23 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Decoder config.Decoder = func(data []byte, v interface{}) (err error) {
	if config.JSONAllowComments {
		str := config.StripComments(string(data))
		return parser.Unmarshal([]byte(str), v)
	}

	return parser.Unmarshal(data, v)
}

Decoder for json

View Source
var Driver = &jsonDriver{config.JSON}

Driver for json

View Source
var Encoder config.Encoder = parser.Marshal

Encoder for json

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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