json

package
v2.8.2 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package json use the https://github.com/json-iterator/go for parse json

Index

Constants

This section is empty.

Variables

View Source
var Decoder config.Decoder = func(data []byte, v interface{}) (err error) {
	if config.JSONAllowComments {
		str := jsonutil.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