I’m currently writing Java client code that gets a JSON response from a rest service. For my JSON response, I need to deserialize it to a pojo. If the JSON’s outer most wrappers are square brackets that enclose a list of objects, what Jackson annotation can I use to load it to an array or ArrayList?
The JSON looks like this:
[{"key1": "val1"}, {"key2": "val2"}, {"key3": "val3"}]