| 233 | } |
| 234 | |
| 235 | Result<Value> fastJsonToValue(const std::string_view& str) { |
| 236 | JSONReader reader(str); |
| 237 | auto output = readValueFromJSONReader(reader); |
| 238 | if (reader.hasError()) { |
| 239 | return reader.getError(); |
| 240 | } |
| 241 | return output; |
| 242 | } |
| 243 | |
| 244 | Result<Value> jsonToValue(const std::string_view& str) { |
| 245 | return correctJsonToValue(str); |