Skip to content

Commit 4a0ac35

Browse files
committed
Added JSON parser to example.
1 parent 2927002 commit 4a0ac35

File tree

12 files changed

+2629
-8
lines changed

12 files changed

+2629
-8
lines changed

libs/network/example/atom/atom.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ namespace boost {
1414
namespace network {
1515
namespace atom {
1616
feed::feed(const http::client::response &response) {
17-
std::string response_body = body(response);
17+
std::string response_body = body(response);
1818
rapidxml::xml_document<> doc;
19-
doc.parse<0>(const_cast<char *>(response_body.c_str()));
19+
doc.parse<0>(const_cast<char *>(response_body.c_str()));
2020

2121
rapidxml::xml_node<> *feed = doc.first_node("feed");
2222
if (!feed) {
@@ -51,7 +51,7 @@ feed::feed(const http::client::response &response) {
5151
author_ = atom::author(name->first_node()->value(), email->first_node()->value());
5252
}
5353
else if (name) {
54-
author_ = atom::author(name->first_node()->value());
54+
author_ = atom::author(name->first_node()->value());
5555
}
5656
}
5757

@@ -89,7 +89,7 @@ feed::feed(const http::client::response &response) {
8989
entries_.back().set_content(content->first_node()->value());
9090
}
9191

92-
entry = entry->next_sibling();
92+
entry = entry->next_sibling();
9393
}
9494
}
9595
} // namespace atom

0 commit comments

Comments
 (0)