Subsonic API: switch from property_tree to Wt::Json to properly report empty arrays/nodes
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user