Class GsonFactory.Builder (1.45.3)

public static final class GsonFactory.Builder

Builder for GsonFactory.

Inheritance

java.lang.Object > GsonFactory.Builder

Methods

build()

public GsonFactory build()

Builds GsonFactory instance.

Returns
Type Description
GsonFactory

setReadLeniency(boolean readLeniency)

public GsonFactory.Builder setReadLeniency(boolean readLeniency)

Set to true when you want to the JSON parser to be lenient to reading JSON value. By default, it is false.

Parameter
Name Description
readLeniency boolean
Returns
Type Description
GsonFactory.Builder