java.lang.Object
de.fraunhofer.iosb.ilt.frostclient.json.serialize.JsonWriter

public class JsonWriter extends Object
Enables serialization of entities as JSON.
  • Method Details

    • getObjectMapper

      public static com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
    • writeEntity

      public static void writeEntity(Writer writer, Entity entity) throws IOException
      Throws:
      IOException
    • writeEntity

      public static String writeEntity(Entity entity) throws com.fasterxml.jackson.core.JsonProcessingException
      Throws:
      com.fasterxml.jackson.core.JsonProcessingException
    • writeBytes

      public static byte[] writeBytes(Entity entity) throws com.fasterxml.jackson.core.JsonProcessingException
      Throws:
      com.fasterxml.jackson.core.JsonProcessingException
    • writeObject

      public static void writeObject(Writer writer, Object object) throws IOException
      Throws:
      IOException
    • writeObject

      public static String writeObject(Object object) throws com.fasterxml.jackson.core.JsonProcessingException
      Throws:
      com.fasterxml.jackson.core.JsonProcessingException