String returns the current JSONRaw instance as a json encoded string.
()
| 19 | |
| 20 | // String returns the current JSONRaw instance as a json encoded string. |
| 21 | func (j JSONRaw) String() string { |
| 22 | raw, _ := j.MarshalJSON() |
| 23 | return string(raw) |
| 24 | } |
| 25 | |
| 26 | // MarshalJSON implements the [json.Marshaler] interface. |
| 27 | func (j JSONRaw) MarshalJSON() ([]byte, error) { |