io.setl.json.jackson.JsonObjectSerializer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of canonical-json Show documentation
Show all versions of canonical-json Show documentation
An implementation of the Canonical JSON format with support for javax.json and Jackson
The newest version!
package io.setl.json.jackson;
import com.fasterxml.jackson.databind.JavaType;
import com.fasterxml.jackson.databind.JsonMappingException;
import com.fasterxml.jackson.databind.JsonSerializer;
import com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWrapper;
import com.fasterxml.jackson.databind.jsonFormatVisitors.JsonMapFormatVisitor;
import com.fasterxml.jackson.databind.ser.std.StdKeySerializers.StringKeySerializer;
import com.fasterxml.jackson.databind.type.TypeFactory;
import io.setl.json.CJObject;
/**
* A serializer for JSON objects.
*
* @author Simon Greatrix on 06/01/2020.
*/
public class JsonObjectSerializer extends CanonicalSerializer {
/** Serialize the string key as strings. Weirdly Jackson defines the String Key Serializer as serializing Objects. */
private static final JsonSerializer
© 2015 - 2025 Weber Informatics LLC | Privacy Policy