ParseJSONRaw creates a new JSONRaw instance from the provided value (could be JSONRaw, int, float, string, []byte, etc.).
(value any)
| 12 | // ParseJSONRaw creates a new JSONRaw instance from the provided value |
| 13 | // (could be JSONRaw, int, float, string, []byte, etc.). |
| 14 | func ParseJSONRaw(value any) (JSONRaw, error) { |
| 15 | result := JSONRaw{} |
| 16 | err := result.Scan(value) |
| 17 | return result, err |
| 18 | } |
| 19 | |
| 20 | // String returns the current JSONRaw instance as a json encoded string. |
| 21 | func (j JSONRaw) String() string { |
searching dependent graphs…