Posts

Showing posts from January, 2025

Simplifying JSON in Oracle APEX 24.2: A Step-by-Step Guide

Image
No more parsing JSON in SQL! Oracle APEX’s 24.2 new Shared Component, JSON Source,  lets you directly connect and display JSON data in reports with minimal effort. Let’s dive into how this innovative feature redefines application development.  Step 1: Create a JSON Table with Sequence and Trigger To begin utilizing Oracle APEX's JSON Source feature, the first step is to create a table that stores JSON data. To make the process efficient, we’ll also include: A Sequence to generate unique IDs. A Trigger to automatically assign IDs and populate "who columns" for audit purposes (CREATED_BY, CREATION_DATE, UPDATED_BY, UPDATED_DATE). CREATE TABLE employee_json_t (       employee_id          NUMBER PRIMARY KEY     , employee_details  CLOB CHECK ( employee_details IS JSON )     , status                     CHAR(1)     , created_by       ...