json

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsJson

func IsJson(data string) (bool, error)

func ToJSONStr

func ToJSONStr(JsonAsMap map[string]string) (string, error)

func ToMapOptionalJS

func ToMapOptionalJS(js string) (map[string]any, error)

Types

type Json

type Json string

func NewJson

func NewJson(jsonInput string) (Json, error)

func ToJSON

func ToJSON(JsonAsMap map[string]string) (Json, error)

func (*Json) GetColorizedJSON

func (js *Json) GetColorizedJSON() (string, error)

func (*Json) ToMap

func (js *Json) ToMap() (map[string]any, error)

Jump to

Keyboard shortcuts

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