Sigh.
The way to handle this with Jackson is to make the field Object. It
will be either a String or a Map<String, Object>. Alternatively I
suspect that if you make the field JsonNode then Jackson will do the
right thing.
If you want to encapsulate this, use JsonNode and then have two
different getter methods, one that returns the String version and one
that uses ObjectMapper to translate from JsonNode to your Location
structure (if appropriate).
Jeff
> --
> You received this message because you are subscribed to the Google Groups
> "BatchFB" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
batchfb+u...@googlegroups.com.
> For more options, visit
https://groups.google.com/groups/opt_out.
>
>