// MarshalJSON implements the encoding/json Marshaler interface. It will return
// the value of j as a JSON-encoded []byte. If j is valid, this function will
// first validate the contained JSON returning either any encouted parsing
// errors, or a []byte. If j is null, "null" will be returned, and no validation
// will occur.
MarshalJSON implements the encoding/json Marshaler interface. It will return
the value of j as a JSON-encoded []byte. If j is valid, this function will
first validate the contained JSON returning either any encouted parsing
errors, or a []byte. If j is null, "null" will be returned, and no validation
will occur.
// MarshalJSON implements the encoding / json Marshaler interface . It will return // the value of j as a JSON - encoded [] byte . If j is valid this function will // first validate the contained JSON returning either any encouted parsing // errors or a [] byte . If j is null " null " will be returned and no validation // will occur .
func (j RawJSON) MarshalJSON() ([]byte, error) {
	if !j.Valid {
		return []byte("null"), nil
	}
	return j.JSON.MarshalJSON()
}
func ( j RawJSON ) MarshalJSON ( ) ( [ ] byte , error ) { if ! j . Valid { return [ ] byte ( " " ) , nil } return j . JSON . MarshalJSON ( ) }
MarshalJSON implements the encoding/json Marshaler interface.
MarshalJSON implements the encoding / json Marshaler interface .