JSON_VALUE_ON_ERROR error condition
<functionName> could not extract a scalar value at path <path>.
EMPTY
The path matched no value. This error was requested by the ERROR ON EMPTY clause.
ERROR
The input is not valid JSON, the matched value is not a scalar, or it could not be cast to the RETURNING type. This error was requested by the ERROR ON ERROR clause.