Most visited

Recently visited

Added in API level 11

MalformedJsonException

public final class MalformedJsonException
extends IOException

java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.io.IOException
         ↳ android.util.MalformedJsonException


当读者遇到格式不正确的JSON时抛出。 调用setLenient(boolean)可以忽略一些语法错误。

Summary

Public constructors

MalformedJsonException(String message)

Inherited methods

From class java.lang.Throwable
From class java.lang.Object

Public constructors

MalformedJsonException

Added in API level 11
MalformedJsonException (String message)

Parameters
message String

Hooray!