Hello,
I receive json file as a respond in IFS connect from REST API. How to save that respond as a row/s in custom table?
best regards
Bart
Hello,
I receive json file as a respond in IFS connect from REST API. How to save that respond as a row/s in custom table?
best regards
Bart
Best answer by sutekh137
If you can insure the JSON will always be less than 4000 characters you can use a single VARCHAR2 field to store the whole thing.
If the file can be larger, then you are out of luck, as custom fields cannot be CLOBs as far as I know, and I think the size limit is 4000. In that case you would need to model the JSON structure into one or more CLUs and save the data related by how the hierarchy flows. It’s not particularly straightforward since JSON can have complex objects inside other complex objects and supports arrays of data with variable lengths to the collections. That’s why JSON (and XML) content is often stored as one big LOB of text, then it is deserialized as needed by advanced parsers that can handle the structural complexity of non-tabular data.
What is the structure of the JSON? Is it simple, or complicated?
Thanks,
Joe Kaufman
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.