diff --git a/documentation/release_notes.dox b/documentation/release_notes.dox index 27bc1aa..6e2927f 100644 --- a/documentation/release_notes.dox +++ b/documentation/release_notes.dox @@ -5,6 +5,8 @@ Release 8.0.6 (UNRELEASED) ======================== +- Compatible changes + - Actually enable JSON-5 output in PVStructure::Formatter::JSON when available. Release 8.0.5 (Sep 2022) ======================== diff --git a/src/factory/printer.cpp b/src/factory/printer.cpp index 55fb01c..846f2de 100644 --- a/src/factory/printer.cpp +++ b/src/factory/printer.cpp @@ -404,6 +404,9 @@ std::ostream& operator<<(std::ostream& strm, const PVStructure::Formatter& forma if(format.xfmt==PVStructure::Formatter::JSON) { JSONPrintOptions opts; opts.multiLine = false; +#if EPICS_VERSION_INT>=VERSION_INT(7,0,6,1) + opts.json5 = true; +#endif printJSON(strm, format.xtop, format.xshow ? *format.xshow : BitSet().set(0), opts); strm<<'\n'; return strm;