@Deprecated public class MapEntrySerde extends Object
Jackson Serializer and Deserializer for Map.Entry
.
This is mostly for pre 2.7 version of Jackson, see Jackson Databind issue 565.
The goal is to omit the key/value field name since they are implicit
for a Map.Entry.
{"key":"mykey","value":18}
becomes {"mykey":18}
The key will use toString()
and the value can only be a String or a Number (int or float) for now.
// Usage for lists: @JsonSerialize(contentUsing = MapEntrySerde.MapEntryJsonSerializer.class) public List> getKeyValueList() { ... };
Modifier and Type | Class and Description |
---|---|
static class |
MapEntrySerde.MapEntryJsonDeserializer
Deprecated.
|
static class |
MapEntrySerde.MapEntryJsonSerializer
Deprecated.
|
Constructor and Description |
---|
MapEntrySerde()
Deprecated.
|
public MapEntrySerde()
Copyright © 2024 Global Biodiversity Information Facility (GBIF). All rights reserved.