I don't have an answer. It has happened to me only once (2.4.5), using the file browser for a local file. Unfortunately, I can't remember the file or its size but think I was trying to insert a small image into a label. After restarting moodle, it went away.
Invalid JSON string with small file upload
This discussion has been locked because a year has elapsed since the last post. Please start a new discussion topic.