Skip to content

Commit 4d244bc

Browse files
Update faq.md
1 parent bff2692 commit 4d244bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/faq.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ Deserializing into REF TO data is the same as using the GENERATE method and resu
2020
## Serialize huge data objects into JSON and short dumps
2121
You are using the class to serialize your data into JSON. Unfortunately, sometimes you pass too big tables, which results in too long a JSON string (for example, longer than 1GB), and this leads to dumps like SYSTEM_NO_ROLL, STRING_SIZE_TOO_LARGE, MEMORY_NO_MORE_PAGING, while the system can not allocate such a big continuous memory chunk. This specific case could be solved by increasing the memory allocation limit, but you would still end up with an INT4 size limit for string length, which can not be more than 2GB.
2222

23-
The string (JSON) of such size can not be created, transported, or persisted. I think you would need to have special handling on your side for this case.
23+
The string (JSON) of such size can not be created, transported, or persisted. You would need to have special handling on your side for this case.
2424
E.g. if you want to serialize such a big amount of data, you will need to split the input into chunks and do the serialization and transport of the resulting JSON chunks by parts.
2525

2626
The memory exceptions are not catchable and you will need to do data size evaluations on your side, before calling serialization.
2727

28-
So, the only robust way to solve the issue will be by having a limit on serialized data size. Which can be done only on the /ui2/cl_json consumer side.
28+
So, the only robust way to solve the issue will be by limiting serialized data size, which can be done only on the /ui2/cl_json consumer side.
2929

3030
Even if you select another format for serialization (XML or ABAP JSON) you will stick to some limit. So, no other way.
3131

0 commit comments

Comments
 (0)