MalformedJsonException extends IOException, and hence is a checked exception. It is suitable for use when you are writing a TypeAdapter or using JsonReader/JsonWriter directly.
If you are using Gson or writing JsonSerializer/JsonDeserializer, you will use JsonParseException (superclass of JsonSyntaxException and JsonIOException). These are unchecked exceptions and dont force you to catch them in code.
HTH
Inder
----