# HG changeset patch # User Mike Becker # Date 1735848011 -3600 # Node ID 4e1872151fb6efe68013b5b294b31bb48001ec27 # Parent ffa8bb4e9288815d2aae0d46b8e79c3f2bbacc55 remove idea for an array wrapping feature - relates to #526 diff -r ffa8bb4e9288 -r 4e1872151fb6 src/cx/json.h --- 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; }; /** diff -r ffa8bb4e9288 -r 4e1872151fb6 src/json.c --- 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) {