1207Re: [json] Stoppable SAX-like interface for streaming input of JSON text
- Feb 6, 2009
> > The first drawback is partly true but in complex scenarios, a user with StAX parserYes, it's convenient. But I think it may result in a call stack based processor instead of a heap based one, right? The former will cause stack overflow issues in a deep nesting level. Here's a heap based processor for building object graph with SAX-like interface:
> > may also need to keep track of states such as nesting levels, parent-child
> > relationships and so on.
> Maybe, but not necessarily, because this information if implicit
> within call stack (except for having to track end markers).
> That is, it's a recursive-descent kind of approach where you know
> where you came from, usually without additional tracking of location.
> Code branches based on constructs encountered.
- << Previous post in topic Next post in topic >>