object to json string using moshi code example
Example 1: object to json c#
using Newtonsoft.Json;
var jsonString = JsonConvert.SerializeObject(obj);
Example 2: how to convert jsonobject to string in java
JSONObject json = new JSONObject();
json.toString();
Example 3: version moshi
implementation "com.squareup.moshi:moshi-kotlin:1.11.0"