jsonStringToObject attempts to unmarshall a string as JSON into the object passed as pointer.
(s string, v any)
| 207 | // jsonStringToObject attempts to unmarshall a string as JSON into |
| 208 | // the object passed as pointer. |
| 209 | func jsonStringToObject(s string, v any) error { |
| 210 | data := []byte(s) |
| 211 | return json.Unmarshal(data, v) |
| 212 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…