I'm trying to serialize a JSON object which represents a conversation tree. Here's the POJO:
class Node { @JsonProperty("children") private List<Node> children; @JsonProperty("text") private String text;} Eventually the tree ends with a Node with an empty list of children. The problem is: serializing a sufficiently long tree (say, 50 nodes deep) will cause a StackOverflowError on Android devices with the Dalvik runtime because it has 32kb of stack size. Serializing a smaller tree works fine. Is there any way to prevent Jackson using recursion? Will using Jackson Jr. help resolve my problems? Is there a better way to represent the tree as a POJO? I don't have control over the JSON object. I'm using Jackson 2.7.5. Thanks in advance for any help. -- You received this message because you are subscribed to the Google Groups "jackson-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to jackson-user+unsubscr...@googlegroups.com. To post to this group, send email to jackson-user@googlegroups.com. For more options, visit https://groups.google.com/d/optout.