jsonutils

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JsonToFlatMap

func JsonToFlatMap(stringJson string) (map[string]xmlutils.ValueDatatype, error)

-----------------------------------------------------------

-----------------------------------------------------------

func JsonToFlatMapFromMap

func JsonToFlatMapFromMap(parsedJson map[string]any) map[string]xmlutils.ValueDatatype

-----------------------------------------------------------

-----------------------------------------------------------

func JsonToMapPlaceholder

func JsonToMapPlaceholder(stringJson string) (map[string]any, error)

Types

type JsonValues_NOTINTUSE

type JsonValues_NOTINTUSE struct {
	Value    any
	DataType string
}
{
	"a": "aval",
	"b": {
		"x1": "x1val",
		"X2": {
			"x3": "x3val"
		},
		"x4": ["x41", "x42", "x43"]
	},
	"c": ["c1", "c2", "c3"],
	"d": true,
        "dd":1,
        "dd2":3.20,

"e": null }

TO

map[a:{aval string}

b.X2.x3:{x3val string}
b.x1:{x1val string}
b.x4[0]:{x41 string}
b.x4[1]:{x42 string}
b.x4[2]:{x43 string}
c[0]:{c1 string}
c[1]:{c2 string}
c[2]:{c3 string}
d:{true bool}
dd:{1 float64}
dd2:{3.2 float64}
e:{<nil> invalid}]

Jump to

Keyboard shortcuts

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