Won't Fix
Last Updated: 08 Oct 2020 17:09 by Jason
Created on: 30 Sep 2020 14:41
Type: Feature Request
Disable (or make optional) the sorting of JSON properties in tree view mode

Please consider refraining from (or at least making optional) the sorting of the JSON property keys when using the JSON tree viewer.  For code which sends out complex payloads, having the properties reordered makes it hard to compare the tree to the actual payload sent.  For example, we send startXXX and endXXX properties at the end of our payload, and when Fiddler moves "endXXX" to the top of the tree, debugging becomes a pain.  Please allow the payload to be tree-visualized as constructed.

Posted on: 08 Oct 2020 17:09
Learn something new every day.  Thanks!
Posted on: 05 Oct 2020 19:42

Hiya, Jason!

You can select the SyntaxView Inspector, right-click the content, and choose "Format as Script/JSON"

Posted on: 05 Oct 2020 13:28

Thank you for the update.  While the order of the properties may not matter internally, it can definitely matter to those using the JSON viewer to visualize the payload.

Since the raw/text view of the payload is exactly what the server is sending, could you instead add something to simply pretty-print a JSON (application/json) response (such as via the text wizard) ?  Even that would help...

In any event, thanks again for the tool and the response.

Posted on: 02 Oct 2020 18:30
This would, unfortunately, require a significant rewrite of the JSON code because ordering of object properties is not important in JavaScript and the data-structures used to represent the data (HashMap) do not support preservation of order.