Continue Refactoring

This commit is contained in:
Admin
2016-12-28 16:44:41 -06:00
parent b7d6d099a6
commit 66d7306cda
68 changed files with 526 additions and 414 deletions

View File

@@ -0,0 +1,17 @@
package com.bwssystems.HABridge.util;
import com.google.gson.Gson;
import spark.ResponseTransformer;
/*
* Implementation of a Json renderer through google GSON utility.
*/
public class JsonTransformer implements ResponseTransformer {
private Gson gson = new Gson();
@Override
public String render(Object model) {
return gson.toJson(model);
}
}