| 69 | if (value.is_bool()) { |
| 70 | return value.as_bool() ? "true" : "false"; |
| 71 | } |
| 72 | if (value.is_number()) { |
| 73 | return engine::io::json::stringify_number(value.as_number()); |
| 74 | } |
| 75 | return engine::io::json::stringify(value); |
| 76 | } |
| 77 | |
| 78 | std::unordered_map<std::string, std::string> json_options_map(const engine::io::json::Value * value) { |
| 79 | std::unordered_map<std::string, std::string> options; |
| 80 | if (value == nullptr || value->is_null()) { |
| 81 | return options; |
| 82 | } |
no test coverage detected