use Gson to convert an object to Json string