| 58 | }; |
| 59 | |
| 60 | inline bool ValidateJson(IInputStream* in, const TJsonReaderConfig* config, bool throwOnError = false) { |
| 61 | TJsonCallbacks c(throwOnError); |
| 62 | return ReadJson(in, config, &c); |
| 63 | } |
| 64 | |
| 65 | inline bool ValidateJson(TStringBuf in, const TJsonReaderConfig& config = TJsonReaderConfig(), bool throwOnError = false) { |
| 66 | TMemoryInput min(in.data(), in.size()); |
no test coverage detected