aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/json/fast_sax/parser.h
blob: 31f5348da93955721196443f87b3ee069e64cc18 (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); 
    } 
}