| 90 | } // namespace |
| 91 | |
| 92 | Json::Value pathTreeToJson(PathTree const &tree, bool keepNulls) { |
| 93 | auto visitor = PathTreeToJsonVisitor{keepNulls}; |
| 94 | tree.visitConstTree(visitor); |
| 95 | return visitor.getResult(); |
| 96 | } |
| 97 | |
| 98 | void jsonToPathTree(PathTree &tree, Json::Value nodes) { |
| 99 | for (auto const &node : nodes) { |
no test coverage detected