Hi GovindarajSatChandrasekharan4455442,
The code is actually executing with json data even after throwing [Fatal Error] :1:1: Content is not allowed in prolog.
Below is the sysouts I put in the code.
Example is applied to JSON data. I will debug and provide more information till then continue using your json data for testing.
Regards,
Sachin