On Thu, Dec 17, 2020 at 4:16 PM Meissa M'baye Sakho <
msa...@redhat.com> wrote:
>
> Hello everyone,
> Is a limit to the size of JSON file that can be handled by Jackson?
> The JSOn file that I will have to generate can be very huge. I'm dumping an entire cache to a json file for further restore.
No limit to either input or output: for streaming (JsonParser,
JsonGenerator) only part of the document is ever in memory at any
given moment.
There are plans to allow limiting input size via configurable
settings, at this level, but no maximum is currently imposed.
Databind does not limit content size either, but obviously available
memory may limit maximum processable amounts.
It is often possible to bind only part(s) of document, to use
streaming JsonParser to advance stream, and then use ObjectMapper
to just bind a subset (like individual document from longer stream),
to work around this limitation too.
-+ Tatu +-
> Any input is appreciated.
> Thanks
>
> --
> 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...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/jackson-user/beb7fa62-b8ea-40e5-8c2d-659a4ba7cf42n%40googlegroups.com.