Package | Description |
---|---|
io.vertx.core.json | |
io.vertx.core.json.jackson | |
io.vertx.core.spi.json |
Modifier and Type | Method and Description |
---|---|
static String |
Json.encode(Object obj)
Encode a POJO to JSON using the underlying Jackson mapper.
|
static String |
Json.encodePrettily(Object obj)
Encode a POJO to JSON with pretty indentation, using the underlying Jackson mapper.
|
static Buffer |
Json.encodeToBuffer(Object obj)
Encode a POJO to JSON using the underlying Jackson mapper.
|
Modifier and Type | Method and Description |
---|---|
Buffer |
JacksonCodec.toBuffer(Object object,
boolean pretty) |
Buffer |
DatabindCodec.toBuffer(Object object,
boolean pretty) |
String |
JacksonCodec.toString(Object object,
boolean pretty) |
String |
DatabindCodec.toString(Object object,
boolean pretty) |
Modifier and Type | Method and Description |
---|---|
default Buffer |
JsonCodec.toBuffer(Object object)
Like
JsonCodec.toString(Object) but with a json Buffer |
Buffer |
JsonCodec.toBuffer(Object object,
boolean pretty)
Like
JsonCodec.toString(Object, boolean) but with a json Buffer |
default String |
JsonCodec.toString(Object object)
Encode the specified
object to a string. |
String |
JsonCodec.toString(Object object,
boolean pretty)
Encode the specified
object to a string. |
Copyright © 2024 Eclipse. All rights reserved.