88 #ifdef JSON_SECURITY_MAX_STREAM_OBJECTS
95 if (end != json_string::npos){
96 #ifdef JSON_SECURITY_MAX_STREAM_OBJECTS
98 JSON_FAIL(
JSON_TEXT(
"Maximum number of json objects for a stream at once has been reached"));
112 json_string::iterator beginning =
buffer.begin();
113 buffer.erase(beginning, beginning + end);
119 #ifndef JSON_VALIDATE
120 #error In order to use safe mode and streams, JSON_VALIDATE needs to be defined
124 #if defined JSON_DEBUG || defined JSON_SAFE
#define JSON_TEXT(s)
Definition: Strings_Defs.h:30
#define JSON_SECURITY_MAX_STREAM_OBJECTS
Definition: JSONOptions.h:353
static JSONNode static parse(const json_string &json) json_throws(std JSONNode static parse_unformatted(const json_string &json) json_throws(std JSONNode static _parse_unformatted(const json_char *json) json_throws(std json_char RemoveWhiteSpace)(const json_string &value_t, bool escapeQuotes) json_nothrow json_read_priority
Definition: JSONWorker.h:24
#define END_MEM_SCOPE
Definition: JSONDefs.h:89
static bool isValidPartialRoot(const json_char *json) json_nothrow json_read_priority
Definition: JSONValidator.cpp:390
Definition: JSONMemory.h:129
void set(T *p) json_nothrow
Definition: JSONMemory.h:137
#define START_MEM_SCOPE
Definition: JSONDefs.h:88
Definition: JSONNode.h:132
#define json_char
Definition: Strings_Defs.h:21
T * ptr
Definition: JSONMemory.h:140
json_stream_e_callback_t err_call
Definition: JSONStream.h:75
#define STREAM_FIND_NEXT_RELEVANT(ch, vt, po)
Definition: JSONStream.cpp:68
json_stream_callback_t call
Definition: JSONStream.h:74
json_string buffer
Definition: JSONStream.h:73
#define json_likely(x)
Definition: Unknown_C.h:16
static JSONNode parse(const json_string &json) json_throws(std
Definition: libjson.h:242
JSON_PRIVATE void * getIdentifier(void) json_nothrow
Definition: JSONStream.h:58
#define JSON_FAIL(msg)
Definition: JSONDebug.h:54