func (j JSONWrapper) Wrap(parent string, child string) string {
	if j.Verify && !validJson(child) {
		fmt.Println("invalid input JSON")
		return child
	}

	wrapped := fmt.Sprintf("{ \"%s\": %s }", parent, child)
	if j.Prettify {
		return prettifyJson(wrapped)
	}

	return wrapped
}
// Wrap handles the actual wrapping of the complete child JSON string within the parent object.
Wrap handles the actual wrapping of the complete child JSON string within the parent object.
// Wrap handles the actual wrapping of the complete child JSON string within the parent object .
func (j JSONWrapper) Wrap(parent string, child string) string {
	if j.Verify && !validJson(child) {
		fmt.Println("invalid input JSON")
		return child
	}
	wrapped := fmt.Sprintf("{ \"%s\": %s }", parent, child)
	if j.Prettify {
		return prettifyJson(wrapped)
	}
	return wrapped
}
func ( j JSONWrapper ) Wrap ( parent string , child string ) string { if j . Verify && ! validJson ( child ) { fmt . Println ( " " ) return child } wrapped := fmt . Sprintf ( " \" \" " , parent , child ) if j . Prettify { return prettifyJson ( wrapped ) } return wrapped }
Wrap handles the actual wrapping of the complete child JSON string within the parent object.
Wrap handles the actual wrapping of the complete child JSON string within the parent object .