Class GsonFactory.Builder (1.43.1)

public static final class GsonFactory.Builder

Builder for GsonFactory.

Inheritance

java.lang.Object > GsonFactory.Builder

Methods

build()

public GsonFactory build()

Builds GsonFactory instance.

Returns
TypeDescription
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
NameDescription
readLeniencyboolean
Returns
TypeDescription
GsonFactory.Builder