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.JsonUtilas it is internal to Vert.x
-
-
Field Summary
Fields Modifier and Type Field Description static Base64.DecoderBASE64_DECODERstatic Base64.EncoderBASE64_ENCODER
-
Constructor Summary
Constructors Constructor Description JsonUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ObjectcheckAndCopy(Object val)static ObjectwrapJsonValue(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.Mapwill be wrapped toJsonObjectListwill be wrapped toJsonArrayInstantwill be converted to iso dateStringbyte[]will be converted to base64StringEnumwill be converted to enum nameString
- Parameters:
val- java type- Returns:
- wrapped type or
valif not applicable.
-
-