JsonDeserializer<Map<String,Object>>
, io.honeycomb.libhoney.transport.json.JsonSerializer<Map<String,?>>
public static class HttpHeaderV1PropagationCodec.DefaultJsonConverter extends Object implements JsonDeserializer<Map<String,Object>>, io.honeycomb.libhoney.transport.json.JsonSerializer<Map<String,?>>
Constructor | Description |
---|---|
DefaultJsonConverter() |
Modifier and Type | Method | Description |
---|---|---|
Map<String,Object> |
deserialize(byte[] data) |
Deserialize JSON encoded in UTF-8 bytes as a 'T'.
|
byte[] |
serialize(Map<String,?> data) |
public Map<String,Object> deserialize(byte[] data) throws IOException
JsonDeserializer
deserialize
in interface JsonDeserializer<Map<String,Object>>
data
- to deserialize - must not be valid JSON data.IOException
- if any error occurs during deserialization.public byte[] serialize(Map<String,?> data) throws IOException
serialize
in interface io.honeycomb.libhoney.transport.json.JsonSerializer<Map<String,?>>
IOException
Copyright © 2019–2020 Honeycomb. All rights reserved.