com.github.zthulj.zcopybook.serializer.ParentArrayNodeSerializer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zCopybook Show documentation
Show all versions of zCopybook Show documentation
Library helping to convert positionnal inputs (cobol) to json, using a copybook format
The newest version!
package com.github.zthulj.zcopybook.serializer;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.databind.JsonSerializer;
import com.fasterxml.jackson.databind.SerializerProvider;
import com.github.zthulj.zcopybook.model.ParentArrayNode;
import java.io.IOException;
import java.io.Serializable;
public class ParentArrayNodeSerializer extends JsonSerializer> {
@Override
public void serialize(ParentArrayNode parentArrayNode, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException {
jsonGenerator.writeObject(parentArrayNode.getChildArray());
}
}