1 package org.onap.sdc.dcae.rule.editor.utils;
3 import com.google.gson.*;
5 import java.lang.reflect.Type;
7 public class EmptyStringTranslationSerializer implements JsonSerializer<String> {
9 public JsonElement serialize(String src, Type typeOfSrc, JsonSerializationContext context) {
10 if("\"\"".equals(src))
11 return new JsonPrimitive("");
12 return new JsonPrimitive(src);