JSON list are unordered
Bug #1730936 reported by
Cédric Jeanneret deactivated
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
oslo.log |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Dear Stackers,
While checking the JSONFormatter in oslo_log, I see it outputs multiple lines as a simple JSON list (for example, stacktraces).
This might lead to some issues, as JSON objects (lists, for example) aren't ordered. We might come to a situation where, if we treat the JSON output, the lines will not be in the same order. This can lead to serious issues if we need to track a bug.
A good solution would be to output multi-line content as a single line, using the helpful "\n".join(lines) or something like that.
It can either be an option, or hard-coded - anyway, a "stringified" multi-line output will more than probably save time.
Thank you!
Cheers,
C.
Changed in oslo.log: | |
status: | New → Invalid |
To post a comment you must log in.
What JSON parser treats lists as unordered?