a10db7a1565e78a8eeece4272103115418aa5693 angie Wed Jan 7 12:00:16 2015 -0800 Extended jsonWriteObjectStart to support an optional preceding tag;added jsonWriteStringf, jsonWriteBoolean, jsonWriteValueLabelList, and jsonWriteSlNameList. To be used by cartJson and hgAi. diff --git src/lib/jsonWrite.c src/lib/jsonWrite.c index cef09dc..e2fa0cf 100644 --- src/lib/jsonWrite.c +++ src/lib/jsonWrite.c @@ -1,142 +1,211 @@ /* jsonWrite - Helper routines for writing out JSON. */ /* Copyright (C) 2014 The Regents of the University of California * See README in this or parent directory for licensing information. */ #include "common.h" #include "hash.h" #include "dystring.h" #include "sqlNum.h" #include "jsonParse.h" #include "jsonWrite.h" +// Separator between elements; set this to "\n" to see elements on separate lines. +// Newlines are fine in Javascript, e.g. in an embedded