Generating JSON in APEX 5.0 - Explorer UK
Generating JSON in APEX 5.0 - Explorer UK
Generating JSON in APEX 5.0 - Explorer UK
Tag
I created a tet
application to
Multi Cloud New features OAuth2 ODA
demontrate jut how ea
ORACLE Oracle Cloud Oracle Data
it i. In the image elow
ou can ee that I have
Visualization Oracle Forms
Oracle Licensing Oracle Reports
created two text area,
one for our QL quer
ORDS Outsource PaaS Page Designer
PDF PL/PDF PL/SQL Plug-ins Plugin
and one for the JON
repreentation of the
Raspberry Pi reporting
reult. I have entered an Resource RESTful Rich
text editor SAM Save SE2 Search
extremel imple quer
into m text area for thi
Security Session shuttle Standard
Support Team
Edition Style
example ut ou would
Development Tech17 Template
likel ue tatic querie and
ind variale in our
Universal Theme upgrade
code to avoid an QL Upgrading Validation Values Version Control
Preing the ‘Generate’
utton umit the page
and re the following
PL/QL code:
We are opening a curor
aed on the QL entered
in our rt text area and
uing the
APEX_JON.WRITE
procedure to generate the
JON reult. The other
procedure ued to
initialize and open the
CLOB are important for thi
demontration to work and
can e read up on in the
APEX_JON package
documentation.
Once we have generated
the JON reult we can
ue the
APEX_JON.GET_CLOB_OUTPUT
function to et the value of
our JON text area, a
hown elow:
And a ea a that, we
have correctl formatted
JON data generated
directl from the
dataae. The quer ou
ue to generate the JON
can e a lot more
complicated in a real
world cenario, allowing
complex JON dataet to
e generated.
Ovioul thi wa jut a
hort demontration of
how the data can e
generated and the reall
ueful application of thi
package lie in the ue of
APEX a a we ervice
itelf. Thi require a lightl
di erent approach to
generating the JON a
we need to include a
JON header rather than
jut the data itelf.
In the near future I will
ring together the idea
from thi log and m
previou log (Paring
JON in APEX 5.0) to
create a imple we
ervice which create and
conume JON uing
APEX and ORD.
Colin
Archer
Contributor
Colin i a enior
Development
Conultant at
Explorer with 20
ear experience
of anali,
deign and
development of
epoke Oracle
application for
a wide variet of
uine
function.
Building on hi
previou
experience of
Form and
PL/QL he i now
focuing on
developing high
qualit t for
purpoe olution
uing APEX.
TAG: # APEX 5.0
# JON
The Bene t… Breaking ou…
Quick
Tweets by Link
Addre: Wira @Explorerukltd
Buine Park, Aout
Explorer UK Ltd
Wet Park, Ring Retweeted
U
Road, Leed, Blog
Gavin Bell
L16 6EB @GavBellDev Cae
Is time running tudie
Phone: 0113 Career
out?
289 9470 Contact
#OracleForms
Mail: U
12.2.1.4 was the
Privac
first release since
Polic
#OracleReports
was deprecated.
Do you have a
plan for what to
do with your
reports? Check
Copright © 2019 Explorer UK Ltd.