Skip to Main Content

ORDS, SODA & JSON in the Database

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Remove null values in json clob

juliojgsMay 8 2024

Hi,

I'm calling a service from plsql (oracle 19c) with APEX_WEB_SERVICE.make_rest_request

I generate the payload with a somehow complex select json_object query

Some fields are null, this is normal, so I can get in the payload something like this:

"plan": null,

Now the publisher says they cannot deal with this null string literals, and I should either remove the objects or send empty string.

How can I do this? Should I create a function to parse the clob and remove each and every null object? Or there is something already outofthebox?

Thanks

This post has been answered by EJ-Egyed on May 8 2024
Jump to Answer
Comments
Post Details
Added on May 8 2024
2 comments
1,162 views