Package io.quarkus.jackson.runtime.vertx
Class JsonUtil
- java.lang.Object
-
- io.quarkus.jackson.runtime.vertx.JsonUtil
-
final class JsonUtil extends Object
Implementation utilities (details) affecting the way JSON objects are wrapped. This class is copied fromio.vertx.core.json.impl.JsonUtil
as it is internal to Vert.x
-
-
Field Summary
Fields Modifier and Type Field Description static Base64.Decoder
BASE64_DECODER
static Base64.Encoder
BASE64_ENCODER
-
Constructor Summary
Constructors Constructor Description JsonUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Object
checkAndCopy(Object val)
static Object
wrapJsonValue(Object val)
Wraps well known java types to adhere to the Json expected types.
-
-
-
Field Detail
-
BASE64_ENCODER
public static final Base64.Encoder BASE64_ENCODER
-
BASE64_DECODER
public static final Base64.Decoder BASE64_DECODER
-
-
Method Detail
-
wrapJsonValue
public static Object wrapJsonValue(Object val)
Wraps well known java types to adhere to the Json expected types.Map
will be wrapped toJsonObject
List
will be wrapped toJsonArray
Instant
will be converted to iso dateString
byte[]
will be converted to base64String
Enum
will be converted to enum nameString
- Parameters:
val
- java type- Returns:
- wrapped type or
val
if not applicable.
-
-