aboutsummaryrefslogtreecommitdiffstats
path: root/include/qpdf/JSON.hh
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2022-01-18 00:38:05 +0100
committerJay Berkenbilt <ejb@ql.org>2022-01-30 19:11:03 +0100
commitaa0a379b37889caad022ec12fba76990b2e2e2d9 (patch)
tree6b8ca4c09078fca819dfcd0b374c78dfb1833ec3 /include/qpdf/JSON.hh
parent5c5e5ca29b20877614d9b1c025b86707e67e548b (diff)
downloadqpdf-aa0a379b37889caad022ec12fba76990b2e2e2d9.tar.zst
Add JSON::isDictionary and JSON::isArray
Diffstat (limited to 'include/qpdf/JSON.hh')
-rw-r--r--include/qpdf/JSON.hh6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/qpdf/JSON.hh b/include/qpdf/JSON.hh
index 3618d1e7..11fe2c7b 100644
--- a/include/qpdf/JSON.hh
+++ b/include/qpdf/JSON.hh
@@ -69,6 +69,12 @@ class JSON
QPDF_DLL
static JSON makeNull();
+ QPDF_DLL
+ bool isArray() const;
+
+ QPDF_DLL
+ bool isDictionary() const;
+
// Check this JSON object against a "schema". This is not a schema
// according to any standard. It's just a template of what the
// JSON is supposed to contain. The checking does the following: