Skip to Main Content

APEX

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!

apex plugin sys.htp.p vs apex_json

jmarcSep 28 2017 — edited Oct 4 2017

hi,

I have a little trouble finding interest at apex_json library compared to sys.htp.p.

this makes the code longer to write.

i use the code in AJAX section plugin.

1) with json

apex_json.open_object;

apex_json.write('min',  10);

apex_json.write( 'value',  50 );

apex_json.write( 'max',  l100 );

apex_json.write('orientation', 'circular');

apex_json.close_object;

2) with sys.htp.p, i have the same with one line

sys.htp.p('{"min":10,"max":100,"value":50,"orientation":"circular"}'); 

Did I miss something ?

regards

jeanmarc

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 1 2017
Added on Sep 28 2017
1 comment
708 views