Merge pull request #2 from dgough/master

Fixed loading child nodes
This commit is contained in:
Syoyo Fujita 2016-03-08 17:11:12 +09:00
commit 5bc17bdf5f

View File

@ -1013,7 +1013,6 @@ bool ParseNode(Node &node, std::string &err, const picojson::object &o) {
const picojson::array &childrenArray = const picojson::array &childrenArray =
(childrenObject->second).get<picojson::array>(); (childrenObject->second).get<picojson::array>();
for (size_t i = 0; i < childrenArray.size(); i++) { for (size_t i = 0; i < childrenArray.size(); i++) {
Node node;
if (!childrenArray[i].is<std::string>()) { if (!childrenArray[i].is<std::string>()) {
err += "Invalid `children` array.\n"; err += "Invalid `children` array.\n";
return false; return false;