...

Package jsonx

import "github.com/ory/x/jsonx"
Overview
Index

Overview ▾

func Flatten

func Flatten(raw json.RawMessage) map[string]interface{}

Flatten flattens a JSON object using dot notation.

func NewStrictDecoder

func NewStrictDecoder(b io.Reader) *json.Decoder

NewStrictDecoder is a shorthand for json.Decoder.DisallowUnknownFields

func TestMarshalJSONString

func TestMarshalJSONString(t *testing.T, i interface{}) string

func TestUnmarshalJSON

func TestUnmarshalJSON(t *testing.T, in []byte, i interface{})