parser.h 449 B

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