
com.github.hackerwin7.mysql.tracker.protocol.json.JSONConvert Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mysql-tracker Show documentation
Show all versions of mysql-tracker Show documentation
mysql-tracker is a mysql binlog dumper that fetch and parse the binlog event
The newest version!
package com.github.hackerwin7.mysql.tracker.protocol.json;
import com.github.hackerwin7.mysql.tracker.monitor.JrdwMonitorVo;
import net.sf.json.JSONObject;
import java.util.Map;
/**
* Created by hp on 15-1-8.
*/
public class JSONConvert {
public static JSONObject MapToJson(Map m) throws Exception {
if(m == null) return null;
return JSONObject.fromObject(m);
}
public static JSONObject JrdwMonitorVoToJson(JrdwMonitorVo jmv) throws Exception {
if(jmv == null) return null;
return JSONObject.fromObject(jmv);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy