mirror of
https://github.com/qpdf/qpdf.git
synced 2025-02-02 11:58:25 +00:00
QPDFJob JSON: allow single item in place of array
This commit is contained in:
parent
7de0b3f3c0
commit
0161f62e38
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user