com.firefly.utils.json.serializer.CharArraySerializer Maven / Gradle / Ivy
package com.firefly.utils.json.serializer;
import java.io.IOException;
import com.firefly.utils.json.JsonWriter;
import com.firefly.utils.json.Serializer;
public class CharArraySerializer implements Serializer {
@Override
public void convertTo(JsonWriter writer, Object obj)
throws IOException {
writer.writeStringWithQuote(new String((char[])obj));
}
}