Class Json

java.lang.Object
africa.sendbyte.http.Json

public final class Json extends Object
Internal JSON helper wrapping a configured Jackson ObjectMapper.

Java field names are camelCase; they map to the SendByte API's snake_case wire format automatically via PropertyNamingStrategies.SNAKE_CASE.

This class is part of the SDK's internal machinery and is not intended for direct use by application code.

  • Constructor Details

    • Json

      public Json()
  • Method Details

    • write

      public String write(Object value)
      Serialize a value to a JSON string, omitting null fields.
    • read

      public <T> T read(String json, Class<T> type)
      Deserialize a JSON string into the given type.
    • mapper

      public com.fasterxml.jackson.databind.ObjectMapper mapper()