Thu, 02 Jan 2025 21:00:11 +0100
remove idea for an array wrapping feature - relates to #526
src/cx/json.h | file | annotate | diff | comparison | revisions | |
src/json.c | file | annotate | diff | comparison | revisions |
--- a/src/cx/json.h Thu Jan 02 20:58:32 2025 +0100 +++ b/src/cx/json.h Thu Jan 02 21:00:11 2025 +0100 @@ -457,16 +457,6 @@ * Indentation is only used in pretty output. */ uint8_t indent; - /** - * Set true to enable automatic wrapping of arrays. - * Wrapping is only used in pretty output. - * Objects within arrays are always wrapped. - */ - bool wrap_array; - /** - * Specify the maximum number of characters in a line before an array needs to wrap. - */ - uint16_t wrap_threshold; }; /**
--- a/src/json.c Thu Jan 02 20:58:32 2025 +0100 +++ b/src/json.c Thu Jan 02 21:00:11 2025 +0100 @@ -923,9 +923,7 @@ true, 255, false, - 4, - false, - 80 + 4 }; CxJsonWriter cxJsonWriterCompact(void) { @@ -938,9 +936,7 @@ true, 255, use_spaces, - 4, - false, - 80 + 4 }; } @@ -1002,6 +998,7 @@ } depth++; CxIterator iter = cxJsonObjIter(value); + // TODO: unsorted output - realize after implementing index array cx_foreach(CxJsonObjValue*, member, iter) { // possible indentation if (settings->pretty) {