PL/JSON v0.6 Released to SourceForge
PL/JSON v0.6.1 has now been released to Sourceforge.net. The reason for the .1 is that I forgot a dependency on the 0.6 release.
Anyway, PL/JSON can now create JSON via the API or through parsing a text string. The parser is implemented as a stand along package. That means you can write your own parser (or use an external procedure) if you don’t like mine. This will make it very extensible. I also plan to add PL/SQL callbacks to the parser at some point for custom processing.
Example of parsing:
SET SERVEROUTPUT ON
DECLARE
v_json json;
v_json2 VARCHAR2(32000) :=
'{
"abc": "dpkxvdvvcxz\"vxasasa ",
"def": 12345,
"ghi":{"isit":true, "nope":false,"denada":true },
"jkl": [1234, 45678.99, 121211, 21323232, 00000]
}';
BEGIN
v_json := json(v_json2);
v_json.print;
END;
/
{
"abc":"dpkxvdvvcxz\"vxasasa ",
"def":12345,
"ghi":{
"isit":true,
"nope":false,
"denada":true}
,
"jkl":[1234,45678.99,121211,21323232,0]}
Output from PL/JSON checks out on JSONLint.
Click to continue reading “PL/JSON v0.6 Released to SourceForge”
Read the rest of this entry »


