package de.electricdynamite.pasty;

public class ClipboardItem {
	public String Id = "";
	public String ItemText = "";
	public ClipboardItem(String Id, String ItemText) {
		this.Id = Id;
		this.ItemText = ItemText;
	}
	
	public String getId() {
		return this.Id;
	}
	
	public String getText() {
		return this.ItemText;
	}
	
}

@@ -29,16 +29,76 @@
 pasty;%0A%0A
+import org.json.JSONException;%0Aimport org.json.JSONObject;%0A%0A
 public c
@@ -168,24 +168,26 @@
 mText = %22%22;%0A
+%09%0A
 %09public Clip
@@ -346,24 +346,24 @@
 getText() %7B%0A
-
 %09%09return thi
@@ -379,10 +379,188 @@
 t;%0A%09%7D%0A%09%0A
+%09public JSONObject getJSON() throws JSONException %7B%0A%09%09JSONObject jsItem = new JSONObject();%0A%09%09jsItem.put(%22i%22, this.ItemText);%0A%09%09jsItem.put(%22_id%22, this.Id);%0A%09%09return jsItem;%0A%09%7D%0A%09%0A
 %7D%0A

Work on ClipboardItem Class