com.buabook.http.common.jackson.JsonObjectModule Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of http-common Show documentation
Show all versions of http-common Show documentation
HTTP access functionality (c) 2016 - 2017 Sport Trades Ltd
package com.buabook.http.common.jackson;
import org.json.JSONObject;
import com.fasterxml.jackson.core.util.VersionUtil;
import com.fasterxml.jackson.databind.Module;
import com.fasterxml.jackson.databind.module.SimpleModule;
/**
* Jackson {@link Module} for {@link JSONObject} Serialisation
* (c) 2016 Sport Trades Ltd
*
* @author Jas Rajasansir
* @version 1.0.0
* @since 28 Nov 2016
*/
public class JsonObjectModule extends SimpleModule {
private static final long serialVersionUID = 6700709268706395145L;
private static final String NAME = "org.json.JSONObject Module";
private static final VersionUtil VERSION_UTIL = new VersionUtil() {};
public JsonObjectModule() {
super(NAME, VERSION_UTIL.version());
addSerializer(new JsonObjectStdSerializer());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy