cups_json_t * // O - JSON node
cupsJSONNewKey(cups_json_t *parent, // I - Parent JSON node or `NULL` for a root node
cups_json_t *after, // I - Previous sibling node or `NULL` to append to the end
- const char *value) // I - Key string
+ const char *key) // I - Key string
{
cups_json_t *node; // JSON node
- char *s = strdup(value); // Key string
+ char *s = strdup(key); // Key string
if (!s)
extern cups_json_t *cupsJSONImportURL(const char *url, time_t *last_modified) _CUPS_PUBLIC;
extern cups_json_t *cupsJSONNew(cups_json_t *parent, cups_json_t *after, cups_jtype_t type) _CUPS_PUBLIC;
-extern cups_json_t *cupsJSONNewKey(cups_json_t *parent, cups_json_t *after, const char *value) _CUPS_PUBLIC;
+extern cups_json_t *cupsJSONNewKey(cups_json_t *parent, cups_json_t *after, const char *key) _CUPS_PUBLIC;
extern cups_json_t *cupsJSONNewNumber(cups_json_t *parent, cups_json_t *after, double number) _CUPS_PUBLIC;
extern cups_json_t *cupsJSONNewString(cups_json_t *parent, cups_json_t *after, const char *value) _CUPS_PUBLIC;