toJson

Converts the object to its JSON representation as a String.

Return

The JSON representation of the object as a String.