How to serialize/deserialize FieldValue object?

I have upgraded the Java API from 8.2 to the latest. The method Hit::sort now returns a List<FieldValue> instead of List<String>. I understand this is the correct way but it breaks my app as I was base64 encoding/decoding those sort string values.

I am in the process of migrating it to use FieldValue and I wonder if there is an easy way of serializing/deserializing a FieldValue object to/from a String. I see the FieldValue class is JsonpDeserializable but I don't find information about how to take advantage of it.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.