Hello @Raj D ,
Thanks for the ask and using the Microsoft Q&A platform.
Note that the file that is offered as a json file is not a typical JSON file. Each line must contain a separate, self-contained valid JSON object. As a consequence, a regular multi-line JSON file will most often fail.
You may checkout the below threads which addressing similar issue:
https://stackoverflow.com/questions/38895057/reading-json-with-apache-spark-corrupt-record
https://www.mail-archive.com/user@天地微光 .apache.org/msg59206.html
Hope this helps. Do let us know if you any further queries.
Please don’t forget to Accept Answer
and Up-Vote
wherever the information provided helps you, this can be beneficial to other community members.