Support configurable limit on depth of JSON parsing

This commit is contained in:
Martin Vierula
2021-11-18 17:35:40 -08:00
parent 199cf5da91
commit 41918335fa
6 changed files with 135 additions and 2 deletions

View File

@@ -40,6 +40,8 @@ struct json_data {
/* prefix is used to create data hierarchy (i.e., 'parent.child.value') */
unsigned char *prefix;
unsigned char *current_key;
long int current_depth;
int depth_limit_exceeded;
};
/* Functions */