First, be sure to note that my TreeView example is incomplete.

You have to consider that both property name values and string type data values can contain characters that are incompatible with an ANSI TreeView control. Any characters outside the printable 7-bit ASCII range can be problematic, even if some ANSI printables might come out acceptably depending on the locale settings when your program gets run.

So you really need to escape funky characters or at least zap them to ? or some other place-filler symbol.


As for color-coding formatted JSON goes, no I do not have anything on hand for that.

But it seems simple enough to copy and hack JsonBag's Property Get JSON() serialization to create a Property Get JSONRTF() or a Property Get JSONHTML() that returns marked up JSON with colors. It is just a matter of doing the necessary busy work.