| 7079 | } |
| 7080 | |
| 7081 | static void SerializeStringArrayProperty(const std::string &key, |
| 7082 | const std::vector<std::string> &value, |
| 7083 | detail::json &obj) { |
| 7084 | detail::json ary; |
| 7085 | detail::JsonReserveArray(ary, value.size()); |
| 7086 | for (auto &s : value) { |
| 7087 | detail::JsonPushBack(ary, detail::JsonFromString(s.c_str())); |
| 7088 | } |
| 7089 | detail::JsonAddMember(obj, key.c_str(), std::move(ary)); |
| 7090 | } |
| 7091 | |
| 7092 | static bool ValueToJson(const Value &value, detail::json *ret) { |
| 7093 | detail::json obj; |
no test coverage detected