MarshalJSON implements [json.Marshaler].
()
| 148 | |
| 149 | // MarshalJSON implements [json.Marshaler]. |
| 150 | func (r *Raw) MarshalJSON() ([]byte, error) { |
| 151 | var buf bytes.Buffer |
| 152 | _, err := UnmarshalAsJSON(&buf, []byte(*r)) |
| 153 | return buf.Bytes(), err |
| 154 | } |
| 155 | |
| 156 | // ReadMapHeaderBytes reads a map header size |
| 157 | // from 'b' and returns the remaining bytes. |
nothing calls this directly
no test coverage detected