Getting error, Deserialize JSON: Unexpected character encountered while parsing value: j. Path '', line 0, position 0

I’m enabled to figure of the error

Deserialize JSON: Unexpected character encountered while parsing value: j. Path ‘’, line 0, position 0.

I want to scrape datatable from the following website

API used =
https://www.goodreturns.in/src/fuels.php?cmd=fuel_rates_4_graph&city=nagpur&fuel_type=diesel&callback=jQuery191023162556062697504_1652863292343&_=1652863292344


Hello @Darshan_Kulkarni ,

Please find a similar post. Also is there any unwanted characters in the json?

The first part of the response text is not in JSON format:
image

Replace it with e.g. { "array" :

image

And change the last ) to }

image

After this you can deserialize the json string.

image

great ! Solved

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.