GsonFactory

public class GsonFactory

Create a (de)serialiser in two formats, Pretty &Compact

Constructors

Link copied to clipboard
public void GsonFactory()

Properties

Link copied to clipboard
public static Gson compactGson
Link copied to clipboard
public static Gson prettyGson

Functions

Link copied to clipboard
public static Gson getCompactGson()
Returns a Gson instance for use anywhere with one line strings Use @GsonIgnore in order to skip serialization and deserialization
Link copied to clipboard
public static Gson getPrettyGson()
Returns a Gson instance for use anywhere with new line pretty printing Use @GsonIgnore in order to skip serialization and deserialization