// MarshalMapValue implements the pyrrho/encoding/maps Marshaler interface. It
// will encode j into its interface{} representation for use in a
// map[string]interface{} by passing it through json.Unmarshal.
MarshalMapValue implements the pyrrho/encoding/maps Marshaler interface. It
will encode j into its interface{} representation for use in a
map[string]interface{} by passing it through json.Unmarshal.
// MarshalMapValue implements the pyrrho / encoding / maps Marshaler interface . It // will encode j into its interface {} representation for use in a // map [ string ] interface {} by passing it through json . Unmarshal .
func (j RawJSON) MarshalMapValue() (interface{}, error) {
	if len(j) == 0 {
		return nil, fmt.Errorf("types.RawJSON: invalid JSON, an empty string cannot be unmarshaled")
	}
	var iface interface{}
	err := json.Unmarshal(j, &iface)
	if err != nil {
		return nil, err
	}
	return iface, nil
}
func ( j RawJSON ) MarshalMapValue ( ) ( interface { } , error ) { if len ( j ) == 0 { return nil , fmt . Errorf ( " " ) } var iface interface { } err := json . Unmarshal ( j , & iface ) if err != nil { return nil , err } return iface , nil }
MarshalMapValue implements the pyrrho/encoding/maps Marshaler interface.
MarshalMapValue implements the pyrrho / encoding / maps Marshaler interface .
// An empty byte slice is not valid JSON. Return an error that's more // descriptive than the encoding/json message.