package util;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
/**
 * Utility interface to convert class objects into JSON representations
 * 
 * @author Josh
 * @author Rahul
 *
 */
public interface JSONable {
    public default String toJSON() {
        Gson gson = new GsonBuilder().setPrettyPrinting().create();
        return gson.toJson(this);
    }
}

@@ -221,16 +221,132 @@
 Nable %7B%0A
+%09%0A%09/**%0A%09 * Returns a Gsonified version of the object%0A%09 *  %0A%09 * @return String%0A%09 *         a json of the object%0A%09 */%0A
     publ

improve comments in JSONable.java