objectToJson

public final static String objectToJson(Object obj)

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

Return

The JSON string.

Parameters

obj

The object to convert.