I want to pass my array list which I get it from the Model Class in android to Json Object Array from one Activity to another activity and also suggest me the possibilities to achieve this process in Java.
implementation 'com.squareup.retrofit2:converter-gson:2.3.0'
JsonArray jsonElements = (JsonArray) new Gson().toJsonTree(itemsArrayList);
And I will Convert this jsonElements to string and finally I will pass this to another activity via Intent.