2

I am using MapDB and want to store JSON values in a BTreeMap. As far as I understand, there is no (default) Serializer for JSON values. I know I can implement one myself. But because this is probably a very common use case, i wonder if there are some implementations out there.

Side note: I tried to implement a Serializer for MessagePack but it was more difficult than expected: MessagePack expects an OutputStream for writing the binary format, where MapDB uses a DataOutput. Final code was ugly and not very efficient.

rmuller
  • 12,062
  • 4
  • 64
  • 92

1 Answers1

0

There is no 'official' way. Best is probably to use Serializer.STRING.

Jan Kotek
  • 1,084
  • 7
  • 4