Subsonic API: switch from property_tree to Wt::Json to properly report empty arrays/nodes

This commit is contained in:
emeric
2019-04-07 19:25:08 +02:00
parent 99b56da15f
commit 93cb5cd50c
2 changed files with 67 additions and 40 deletions
+3 -1
View File
@@ -101,10 +101,12 @@ class Response
Node& createNode(const std::string& key);
Node& createArrayNode(const std::string& key);
void writeJson(std::ostream& os);
void write(std::ostream& os, ResponseFormat format);
private:
void writeJSON(std::ostream& os);
void writeXML(std::ostream& os);
Response() = default;
Node _root;
};