Code example for Gson

Methods: toJson

0
 
		RemoteService<CareerProfile> careerService = serviceFactory
				.getService(CareerProfile.class); 
		CareerProfile career = careerService.receiveEntity(configuration);
 
		Gson g = new Gson();
		String json = g.toJson(career);
		System.out.println("gson:" + json);
	} 
} 
Connect your IDE to all the code out there  Get Codota for Java