writeObject
Converts an object to a JSON string representation using ObjectMapper.
Return
The JSON string representation of the object, or WRITING_FAIL_MESSAGE if conversion fails.
Parameters
obj
The object to be converted. Can be of any type.