import org.onap.holmes.common.dmaap.entity.PolicyMsg;\r
import org.onap.holmes.common.exception.CorrelationException;\r
import com.alibaba.fastjson.JSON;\r
+import com.google.gson.Gson;\r
import java.util.HashMap;\r
import javax.ws.rs.core.MediaType;\r
import lombok.Getter;\r
public boolean publish(PolicyMsg msg) throws CorrelationException {\r
String content;\r
try {\r
- content = JSON.toJSONString(msg);\r
+ //content = JSON.toJSONString(msg);\r
+ content = new Gson().toJson(msg);\r
} catch (Exception e) {\r
throw new CorrelationException("Failed to convert the message object to a json string.",\r
e);\r