All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.firefly.utils.json.serializer.DynamicObjectSerializer Maven / Gradle / Ivy

There is a newer version: 4.0.3.2
Show newest version
package com.firefly.utils.json.serializer;

import java.io.IOException;

import com.firefly.utils.json.JsonWriter;
import com.firefly.utils.json.Serializer;

public class DynamicObjectSerializer implements Serializer {

	@Override
	public void convertTo(JsonWriter writer, Object obj) throws IOException {
		if(obj.getClass().equals(Object.class)) {
			writer.writeNull();
		} else {
			SerialStateMachine.toJson(obj, writer);
		}
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy