(err error)
| 1030 | } |
| 1031 | |
| 1032 | func jsonDecodeError(err error) error { |
| 1033 | return pgerror.Wrapf( |
| 1034 | errors.Handled(err), |
| 1035 | pgcode.InvalidTextRepresentation, |
| 1036 | "unable to decode JSON") |
| 1037 | } |
| 1038 | |
| 1039 | // ParseJSON takes a string of JSON and returns a JSON value. |
| 1040 | func ParseJSON(s string, opts ...ParseOption) (JSON, error) { |
no test coverage detected
searching dependent graphs…