In my project I have two classes: TourManager and City. TourManager class has and array and a method called add.city() where I put the created cities.
TourManager tour = new TourManager();
City city25 = new City("Maia", 100, 95);
1) How can I parse the tour object with the cities added to jsonObject and send to custom code?
2) In my custom code, I also have a TourManager class, and I need receive the json request and parse the json object to TourManager again to do some processing. Is it possible to do that?