We have Magento v220.127.116.11.
when we try to upload product images in the admin we get a JSON-related error in the browser console. we checked the error logs but didn't find any specific cause of this error. we have also set the permission to 777 but didn't work.
when we checked the media/catalog/product/import folder we have found some images which had 0byte size. so we have deleted those images and thought if that could help but still, we are getting the same error.
There might be a possibility that the default image uploader was overwritten by some third-party module but we are not able to figure out the exact extension which could be causing this issue. Is there a way to debug this error in a better way? Can anyone suggest any fix for this issue?
Check below screenshot of the error: