jsonutils

package
v0.0.0-...-3caf815 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2021 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JSONUtils

type JSONUtils struct {
	// contains filtered or unexported fields
}

JSONUtils a json utils object

func New

func New(message []byte, maxLevel int, skipSimpleArray bool) (*JSONUtils, error)

New create a new json utils object and parse json to object

func (*JSONUtils) ToKvPairs

func (ju *JSONUtils) ToKvPairs() map[string]string

ToKvPairs convert to a map with kv

func (*JSONUtils) ToKvPairsArray

func (ju *JSONUtils) ToKvPairsArray() []KvPair

ToKvPairsArray convert to an array with all kv pair

type KvPair

type KvPair struct {
	Key   string
	Value string
}

KvPair a kv pair

Jump to

Keyboard shortcuts

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