]> git.plutz.net Git - rigidfind/commitdiff
Squashed 'cgilite/' changes from 426dac5..d7b1281
authorPaul Hänsch <paul@plutz.net>
Mon, 4 Mar 2024 17:29:45 +0000 (18:29 +0100)
committerPaul Hänsch <paul@plutz.net>
Mon, 4 Mar 2024 17:29:45 +0000 (18:29 +0100)
d7b1281 bugfix: incorrect call of `DB2 "" new`

git-subtree-dir: cgilite
git-subtree-split: d7b1281dbec20a236a14bd0fa8771da1ce353d00

json.sh

diff --git a/json.sh b/json.sh
index f43f8ec3c6aabe0633ab9cf45e78755db910a0f3..12afdc4d676b94b705b0c165fee2512c80891cb9 100755 (executable)
--- a/json.sh
+++ b/json.sh
@@ -95,7 +95,7 @@ json_number() {
 }
 
 json_array() {
-  local struct="$(DB2 new)" value json_document="$json_document"
+  local struct="$(DB2 "" new)" value json_document="$json_document"
 
   json_space
   case $json_document in
@@ -141,7 +141,7 @@ json_array() {
 }
 
 json_object() {
-  local struct="$(DB2 new)" key value json_document="$json_document"
+  local struct="$(DB2 "" new)" key value json_document="$json_document"
 
   json_space
   case $json_document in