jsonparser

package
v1.12.2 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JsonParser

type JsonParser struct{}

JsonParser parse a JSON string.

func NewJsonParser

func NewJsonParser() *JsonParser

NewJsonParser returns a new json parser.

func (*JsonParser) ParseString

func (j *JsonParser) ParseString(line string) (map[string]string, error)

ParseString implements the Parser interface. The value in the map is not necessarily a string, so it needs to be converted.

Jump to

Keyboard shortcuts

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