MCPcopy Create free account
hub / github.com/catboost/catboost / TJsonReaderConfig

Class TJsonReaderConfig

library/cpp/json/ordered_maps/json_reader_ordered.h:15–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13
14namespace NJson::NOrderedJson {
15 struct TJsonReaderConfig {
16 TJsonReaderConfig();
17
18 bool UseIterativeParser = false;
19 // js-style comments (both // and /**/)
20 bool AllowComments = false;
21 bool DontValidateUtf8 = false;
22 bool AllowEscapedApostrophe = false;
23 // Allow to read Nan and Inf as integer values
24 bool AllowReadNanInf = false;
25
26 ui64 MaxDepth = 0;
27
28 void SetBufferSize(size_t bufferSize);
29 size_t GetBufferSize() const;
30
31 private:
32 size_t BufferSize;
33 };
34
35 bool ReadJsonTree(TStringBuf in, TJsonValue* out, bool throwOnError = false);
36 bool ReadJsonTree(TStringBuf in, bool allowComments, TJsonValue* out, bool throwOnError = false);

Callers 2

ValidateJsonFunction · 0.70
ValidateJsonThrowFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected