| 111 | } |
| 112 | |
| 113 | std::string removeNlohmannInternalErrorIdentifier(std::string const& _input) |
| 114 | { |
| 115 | std::string result = _input; |
| 116 | std::size_t startPos = result.find('['); |
| 117 | std::size_t endPos = result.find(']', startPos); |
| 118 | |
| 119 | if (startPos != std::string::npos && endPos != std::string::npos) |
| 120 | result.erase(startPos, endPos - startPos + 1); |
| 121 | |
| 122 | return boost::trim_copy(result); |
| 123 | } |
| 124 | |
| 125 | std::string jsonPrettyPrint(Json const& _input) { return jsonPrint(_input, JsonFormat{JsonFormat::Pretty}); } |
| 126 |
no test coverage detected