OverviewFilesCommitsIssuesDocsReleasesPeers

opencog-atomspace-storage commits / 90708a4

Use quick and dirty printer for BoolValue
90708a494be8efc7b49101b1fa57ebb45edadd1b
by Linas Vepštas <linasvepstas@gmail.com> · 2026-01-23T18:05:05.000Z

Changed files (1) +11 -0

opencog/persist/json/EncodeJson.cc +11 -0
……@@ -145,6 +145,17 @@ std::string Json::encode_value(const ValuePtr& v, const std::string& indent)
145145 }
146146 }
147147
148 else
149 if (nameserver().isA(typ, BOOL_VALUE))
150 {
151 // Hack-a-licious. Use the native printer, for now.
152 // XXX FIXME later.
153 BoolValuePtr bv(BoolValueCast(v));
154 txt += "\"";
155 txt += bv->to_string();
156 txt += "\"";
157 }
158
148159 else
149160 if (nameserver().isA(typ, VOID_VALUE))
150161 {