48791463f4a686c550d4515888b0e466c21e0fc9 max Wed Mar 25 13:32:51 2026 -0700 broke build with previous commit, fixing it now diff --git src/inc/jsonWrite.h src/inc/jsonWrite.h index d74cba9742e..83046340750 100644 --- src/inc/jsonWrite.h +++ src/inc/jsonWrite.h @@ -2,30 +2,32 @@ * of the jsonWrite object using various jsonWrite methods, and then output the string where you want. * * struct jsonWrite *jw = jsonWriteNew(); * jsonWriteObjectStart(jw, NULL); // Anonymous outer object * jsonWriteStringf(jw, "user", "%s %s", user->firstName, user->lastName); * jsonWriteNumber(jw, "year", 2015); * jsonWriteObjectEnd(jw); * printf("%s\n", jw->dy->string); * jsonWriteFree(&jw); */ #ifndef JSONWRITE_H #define JSONWRITE_H +#include "jsonParse.h" + struct jwObjInfo /* Helps keep track of whether a comma is needed and whether we need to close an object or list */ { bool isNotEmpty; /* TRUE if an item has already been added to this object or list */ bool isObject; /* TRUE if item is an object (not a list). */ }; struct jsonWrite /* Object to help output JSON */ { struct jsonWrite *next; struct dyString *dy; /* Most of this module is building json text in here */ struct jwObjInfo objStack[1024]; /* Make stack deep enough to handle nested objects and lists */ int stackIx; /* Current index in stack */ char sep; /* Separator, defaults to ' ', but set to '\n' for human