zet

Casting Anything to json.Object with Go Generics

func ExampleObject_Print() {

	type FooBar struct {
		Foo string
		Bar string
	}

	json.Object{FooBar{"FOO", "BAR"}}.Print()

	// Output:
	// {"Foo":"FOO","Bar":"BAR"}
}