@@ -551,37 +551,40 @@ BEGIN
551
551
552
552
PRAGMA INLINE (add_string, 'YES');
553
553
json_utils.add_string(theLobBuf, theStrBuf, aName);
554
+ ELSE
555
+ PRAGMA INLINE (add_string, 'YES');
556
+ json_utils.add_string(theLobBuf, theStrBuf, GAP);
554
557
END IF;
555
558
556
559
-- Add the property value
557
560
CASE aNode.typ
558
561
559
562
WHEN json_utils.NODE_TYPE_NULL THEN
560
563
PRAGMA INLINE (add_string, 'YES');
561
- json_utils.add_string(theLobBuf=>theLobBuf, theStrBuf=>theStrBuf, theValue=>GAP || 'null');
564
+ json_utils.add_string(theLobBuf=>theLobBuf, theStrBuf=>theStrBuf, theValue=>'null');
562
565
563
566
WHEN json_utils.NODE_TYPE_STRING THEN
564
567
PRAGMA INLINE (escape, 'YES');
565
- json_utils.add_string(theLobBuf=>theLobBuf, theStrBuf=>theStrBuf, theValue=>GAP || '"' || escape(theString=>aNode.str, theAsciiOutput=>outputOptions.ascii_output, theEscapeSolitus=>outputOptions.escape_solitus) || '"');
568
+ json_utils.add_string(theLobBuf=>theLobBuf, theStrBuf=>theStrBuf, theValue=>'"' || escape(theString=>aNode.str, theAsciiOutput=>outputOptions.ascii_output, theEscapeSolitus=>outputOptions.escape_solitus) || '"');
566
569
567
570
WHEN json_utils.NODE_TYPE_LOB THEN
568
571
PRAGMA INLINE (add_string, 'YES');
569
- json_utils.add_string(theLobBuf=>theLobBuf, theStrBuf=>theStrBuf, theValue=>GAP || '"');
572
+ json_utils.add_string(theLobBuf=>theLobBuf, theStrBuf=>theStrBuf, theValue=>'"');
570
573
PRAGMA INLINE (escapeLOB, 'YES');
571
574
escapeLOB(theInputLob=>aNode.lob, theLobBuf=>theLobBuf, theStrBuf=>theStrBuf, theAsciiOutput=>outputOptions.ascii_output, theEscapeSolitus=>outputOptions.escape_solitus);
572
575
PRAGMA INLINE (add_string, 'YES');
573
576
json_utils.add_string(theLobBuf=>theLobBuf, theStrBuf=>theStrBuf, theValue=>'"');
574
577
575
578
WHEN json_utils.NODE_TYPE_NUMBER THEN
576
579
PRAGMA INLINE (number_to_json, 'YES');
577
- json_utils.add_string(theLobBuf=>theLobBuf, theStrBuf=>theStrBuf, theValue=>GAP || number_to_json(aNode.num));
580
+ json_utils.add_string(theLobBuf=>theLobBuf, theStrBuf=>theStrBuf, theValue=>number_to_json(aNode.num));
578
581
579
582
WHEN json_utils.NODE_TYPE_DATE THEN
580
- json_utils.add_string(theLobBuf=>theLobBuf, theStrBuf=>theStrBuf, theValue=>GAP || '"' || TO_CHAR(aNode.dat, 'FXYYYY-MM-DD"T"HH24:MI:SS') || '"');
583
+ json_utils.add_string(theLobBuf=>theLobBuf, theStrBuf=>theStrBuf, theValue=>'"' || TO_CHAR(aNode.dat, 'FXYYYY-MM-DD"T"HH24:MI:SS') || '"');
581
584
582
585
WHEN json_utils.NODE_TYPE_BOOLEAN THEN
583
586
PRAGMA INLINE (boolean_to_json, 'YES');
584
- json_utils.add_string(theLobBuf=>theLobBuf, theStrBuf=>theStrBuf, theValue=>GAP || boolean_to_json(aNode.num));
587
+ json_utils.add_string(theLobBuf=>theLobBuf, theStrBuf=>theStrBuf, theValue=>boolean_to_json(aNode.num));
585
588
586
589
WHEN json_utils.NODE_TYPE_OBJECT THEN
587
590
json_utils.object_to_clob(theLobBuf=>theLobBuf, theStrBuf=>theStrBuf, theNodes=>theNodes, theNodeID=>theNodes(theNodeID).sub, theIndentation=>theIndentation, theFlushToLOB=>FALSE);
0 commit comments