Error: unreported exception IOException;

I am getting this error while trying to write JSON file to an array using objectmapper.readvalue ana i am unable to figure out how to fix it?
it shows
IOException
JsonParseException
JsonMappingException in the below format
“Default constructor cannot handle exception type IOException thrown by implicit super constructor. Must define an explicit constructor”

Try googling it and reading the stacktrace to figure out exactly where the error is occuring. That will help you resolve it.

check this link https://stackoverflow.com/questions/15251010/error-using-jackson-and-json

You might not be throwing IOException.

Check whether you are writing your code inside any defined function or outside the functions.