Package io.quarkus.vertx.runtime.jackson
Class JsonUtil
java.lang.Object
io.quarkus.vertx.runtime.jackson.JsonUtil
Implementation utilities (details) affecting the way JSON objects are wrapped.
This class is copied from
io.vertx.core.json.impl.JsonUtil as it is internal to Vert.x-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectcheckAndCopy(Object val) static ObjectwrapJsonValue(Object val) Wraps well known java types to adhere to the Json expected types.
-
Field Details
-
BASE64_ENCODER
-
BASE64_DECODER
-
-
Constructor Details
-
JsonUtil
public JsonUtil()
-
-
Method Details
-
wrapJsonValue
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.
-
checkAndCopy
-