blob: 68f24815c136d1d451ba9a984da992c8cd2a71c9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#pragma once
#include <library/cpp/json/common/defs.h>
namespace NJson {
bool ReadJsonFast(TStringBuf in, TJsonCallbacks* callbacks);
inline bool ValidateJsonFast(TStringBuf in, bool throwOnError = false) {
Y_ASSERT(false); // this method is broken, see details in IGNIETFERRO-1243. Use NJson::ValidateJson instead, or fix this one before using
TJsonCallbacks c(throwOnError);
return ReadJsonFast(in, &c);
}
}
|