5db18ae05a21e122258f156fb5e62c15cfdf98f9 kent Mon Dec 9 11:28:37 2013 -0800 Removing jsonGlabalsHash from library routines. Now it is restricted to hgTrackUi. diff --git src/inc/jsonParse.h src/inc/jsonParse.h index 4c412c6..f779abb 100644 --- src/inc/jsonParse.h +++ src/inc/jsonParse.h @@ -35,31 +35,30 @@ jsonElementType type; union jsonElementVal val; }; // constructors for each jsonElementType struct jsonElement *newJsonString(char *str); struct jsonElement *newJsonBoolean(boolean val); struct jsonElement *newJsonNumber(long val); struct jsonElement *newJsonDouble(double val); struct jsonElement *newJsonObject(struct hash *h); struct jsonElement *newJsonList(struct slRef *list); void jsonObjectAdd(struct jsonElement *h, char *name, struct jsonElement *ele); // Add a new element to a jsonObject; existing values are replaced. -// NOTE: Adding to a NULL hash will add to the global "common" hash printed with jsonPrintGlobals(); void jsonListAdd(struct jsonElement *list, struct jsonElement *ele); // Add a new element to a jsonList struct jsonElement *jsonParse(char *str); // parse string into an in-memory json representation char *jsonStringEscape(char *inString); /* backslash escape a string for use in a double quoted json string. * More conservative than javaScriptLiteralEncode because * some json parsers complain if you escape & or ' */ void jsonFindNameRecurse(struct jsonElement *ele, char *jName, struct slName **pList); // Search the JSON tree recursively to find all the values associated to // the name, and add them to head of the list.