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

com.github.zthulj.zcopybook.serializer.ValueNodeSerializer Maven / Gradle / Ivy

Go to download

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.ValueNode;

import java.io.IOException;
import java.io.Serializable;

public class ValueNodeSerializer extends JsonSerializer> {

    @Override
    public void serialize(ValueNode valueNode, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException {
        jsonGenerator.writeString(valueNode.getValue().toString());
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy