The json_arrayagg::val_str should handle NULL result.
Attach a file by drag & drop or click to upload