diff options
author | Jay Berkenbilt <ejb@ql.org> | 2024-01-10 02:29:01 +0100 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2024-01-11 12:13:57 +0100 |
commit | 0161f62e38fa44ef7fe88138d62a9f0b96f2921d (patch) | |
tree | 755661fd488c02c2ec4a3e3200bc106b5e6aee58 /libqpdf | |
parent | 7de0b3f3c083990842523112959f8e27a0d2e5a0 (diff) | |
download | qpdf-0161f62e38fa44ef7fe88138d62a9f0b96f2921d.tar.zst |
QPDFJob JSON: allow single item in place of array
Diffstat (limited to 'libqpdf')
-rw-r--r-- | libqpdf/QPDFJob_json.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libqpdf/QPDFJob_json.cc b/libqpdf/QPDFJob_json.cc index 35963169..c26c97f6 100644 --- a/libqpdf/QPDFJob_json.cc +++ b/libqpdf/QPDFJob_json.cc @@ -204,6 +204,7 @@ Handlers::beginArray(json_handler_t start_fn, bare_handler_t end_fn) [start_fn](std::string const&, JSON j) { start_fn(j); }, [end_fn](std::string const&) { end_fn(); }, item_jh); + jh->addFallbackHandler(item_jh); this->json_handlers.push_back(item_jh); this->jh = item_jh.get(); } |