ในการแลกเปลี่ยนข้อมูลระหว่าง application กับ service ที่ติดต่อกับฐานข้อมูลบน server โดยส่วนใหญ่ก็จะแลกเปลี่ยนข้อมูลโดยใช้รูปแบบ JSON ซึ่งในส่วนของแอพพลิเคชัน ต้องทำคลาสในการรับข้อมูลพื่อให้สามารถรับข้อมูลและนำไปใช้ได้สะดวกขึ้น ตัวอย่างข้อมูล JSON เช่น [ { “point”: “40.266044,-74.718479”, “homeTeam”:”Lawrence Library”, “awayTeam”:”LUGip”, “markerImage”:”images/red.png”, “information”: “Linux users group meets second Wednesday of each month.”, “fixture”:”Wednesday 7pm”, “capacity”:””, “previousScore”:”” }, { “point”:”40.211600,-74.695702″, “homeTeam”:”Hamilton Library”, “awayTeam”:”LUGip HW SIG”, “markerImage”:”images/white.png”, “information”: “Linux users can meet the first Tuesday of the month to work out harward and configuration issues.”, “fixture”:”Tuesday 7pm”, “capacity”:””, “tv”:”” }, { “point”:”40.294535,-74.682012″, “homeTeam”:”Applebees”, “awayTeam”:”After LUPip Mtg Spot”, “markerImage”:”images/newcastle.png”, “information”: “Some of us go there after the main LUGip meeting, drink brews, and talk.”, “fixture”:”Wednesday whenever”, “capacity”:”2 to 4 pints”, “tv”:”” } ] และตัวอย่างคลาส JAVA ที่เราต้องการสร้างเอาไว้รับข้อมูล ดังนี้ค่ะ ———————————-com.example.Example.java———————————– package com.example; import javax.annotation.Generated; @Generated(“org.jsonschema2pojo”) public class Example { private String point; private String homeTeam; private String awayTeam; private String markerImage; private String information; private String fixture; private String capacity; private String previousScore; private String tv; public String getPoint() { return point; } public void setPoint(String point) { this.point = point; } public String getHomeTeam() { return homeTeam; } public void setHomeTeam(String homeTeam) {