blob: b5f031dd9eb7ef0a7c7b453cdb2e19fb3c608201 (
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);
}
}
|