-
Mar 6th, 2019, 03:19 AM
#11
Re: VB6 - JsonBag, Another JSON Parser/Generator
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.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|