
com.github.gkutiel.flip.web.res.Json Maven / Gradle / Ivy
package com.github.gkutiel.flip.web.res;
import java.util.Map;
import com.github.gkutiel.flip.Response;
import com.google.gson.Gson;
public class Json implements Response {
private static final Gson GSON = new Gson();
@Override
public byte[] getBytes(final Object obj) {
return GSON.toJson(obj).getBytes();
}
@Override
public String getMimeType() {
return "application/json";
}
@Override
public void setProps(final Map props) {}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy