// NewJSON constructs and returns a new RawJSON object based on the given
// types.RawJSON j. If j is of zero-length the new RawJSON will be null.
// Otherwise a new, valid RawJSON will be initialized with a copy of j.
NewJSON constructs and returns a new RawJSON object based on the given
types.RawJSON j. If j is of zero-length the new RawJSON will be null.
Otherwise a new, valid RawJSON will be initialized with a copy of j.
// NewJSON constructs and returns a new RawJSON object based on the given // types . RawJSON j . If j is of zero - length the new RawJSON will be null . // Otherwise a new valid RawJSON will be initialized with a copy of j .
func NewJSON(j types.RawJSON) RawJSON {
	if len(j) == 0 {
		return NullJSON()
	}
	return RawJSON{
		JSON:  types.NewJSON(j),
		Valid: true,
	}
}
func NewJSON ( j types . RawJSON ) RawJSON { if len ( j ) == 0 { return NullJSON ( ) } return RawJSON { JSON : types . NewJSON ( j ) , Valid : true , } }
NewJSON constructs and returns a new RawJSON object based on the given
types.RawJSON j.
NewJSON constructs and returns a new RawJSON object based on the given types . RawJSON j .