JsonHelper

public final class JsonHelper

This class is used to serialize and deserialize JSON objects.

Constructors

Link copied to clipboard

Functions

Link copied to clipboard
public final static String listToJson(List<Object> list)

Converts a list of objects.

Link copied to clipboard
public final static String mapToJson(Map<String, Object> map)

Converts a map to a JSON string.

Link copied to clipboard
public final static String objectToJson(Object obj)

Converts a Java object to a JSON string. Recommended for use with Nylas SDK models.