Error - com.google.gson.stream.MalformedJsonException: Unterminated object at line X column YY path $[0].n

While working with Delete Metadata Step and Test Level in Deployments module, we may face different issues. 

Below is one error that can be appeared in the deployment. 
          
          com.google.gson.stream.MalformedJsonException: Unterminated object at line 1 column 22 path $[0].n
          

Reason - The issue may occur when the JSON file (Test Classes) we attach is not properly validated. There may be some tag missing or extra tags. 

Resolution - Any JSON validator can be used to check if the file is validated or not.

Here is one example
https://jsonformatter.curiousconcept.com/


How did we do?