JSON Parse error

After updating recent code-igniter 4 through composer, I am getting the following error while edit form submission (The modal hangs on submit, however the data has been submitted and i need to refresh the page on every edit form submission) .

SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data

HTTP/1.1 200 OK
X-Powered-By: Undertow/1
Server: WildFly/8
Transfer-Encoding: chunked
Date: Sun, 27 Mar 2022 03:04:40 GMT


Online JSON validator gives the following error,

Invalid (RFC 8259)
Fixer/Validator Output
Error: [Code 23, Structure 0]
Error: [Code 22, Structure 1]

Formatted JSON Data









Now i have turned off the CSRF to avoid this error.

I am using Grocery CRUD Enterprise 2.9.3, Codeigniter 4, PHP 8

Where I am doing wrong?.