diff options
-rw-r--r-- | include/qpdf/JSON.hh | 2 | ||||
-rw-r--r-- | libqpdf/JSON.cc | 2 | ||||
-rw-r--r-- | libtests/json.cc | 4 | ||||
-rw-r--r-- | qpdf/qpdf.cc | 4 |
4 files changed, 6 insertions, 6 deletions
diff --git a/include/qpdf/JSON.hh b/include/qpdf/JSON.hh index f5dd57d5..78f5cc05 100644 --- a/include/qpdf/JSON.hh +++ b/include/qpdf/JSON.hh @@ -41,7 +41,7 @@ class JSON { public: QPDF_DLL - std::string serialize() const; + std::string unparse() const; // The JSON spec calls dictionaries "objects", but that creates // too much confusion when referring to instances of the JSON diff --git a/libqpdf/JSON.cc b/libqpdf/JSON.cc index def439cf..df753b69 100644 --- a/libqpdf/JSON.cc +++ b/libqpdf/JSON.cc @@ -150,7 +150,7 @@ std::string JSON::JSON_null::unparse(size_t) const } std::string -JSON::serialize() const +JSON::unparse() const { if (0 == this->m->value.getPointer()) { diff --git a/libtests/json.cc b/libtests/json.cc index fb902c62..1a9123ad 100644 --- a/libtests/json.cc +++ b/libtests/json.cc @@ -5,9 +5,9 @@ static void check(JSON& j, std::string const& exp) { - if (exp != j.serialize()) + if (exp != j.unparse()) { - std::cout << "Got " << j.serialize() << "; wanted " << exp << "\n"; + std::cout << "Got " << j.unparse() << "; wanted " << exp << "\n"; } } diff --git a/qpdf/qpdf.cc b/qpdf/qpdf.cc index 1a45180c..2eb75af5 100644 --- a/qpdf/qpdf.cc +++ b/qpdf/qpdf.cc @@ -851,7 +851,7 @@ ArgParser::argJsonHelp() << "and \"parameters\" keys will always be present." << std::endl << std::endl - << json_schema().serialize() + << json_schema().unparse() << std::endl; } @@ -3055,7 +3055,7 @@ ideally with the file that caused the error and the output below. Thanks!\n\ } } - std::cout << j.serialize() << std::endl; + std::cout << j.unparse() << std::endl; } static void do_inspection(QPDF& pdf, Options& o) |