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

Function ValidateJson

library/cpp/json/json_reader.h:78–81  ·  view source on GitHub ↗

The return value of the following functions indicates whether the JSON parsing is successful unless 'throwOnError' parameter is set to 'true'. In the latter case TJsonException is thrown in case of parsing errors. */

Source from the content-addressed store, hash-verified

76 In the latter case TJsonException is thrown in case of parsing errors.
77 */
78 inline bool ValidateJson(IInputStream* in, const TJsonReaderConfig* config, bool throwOnError = false) {
79 TJsonCallbacks c(throwOnError);
80 return ReadJson(in, config, &c);
81 }
82
83 inline bool ValidateJson(TStringBuf in, const TJsonReaderConfig& config = TJsonReaderConfig(), bool throwOnError = false) {
84 TMemoryInput min(in.data(), in.size());

Callers 1

ValidateJsonThrowFunction · 0.70

Calls 4

ReadJsonFunction · 0.70
TJsonReaderConfigClass · 0.70
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected