Brandon,

had a chance to look over your code and tried to take advantage of a few newer 
ooRexx features in
the "toJson" part, such that the "array"-handling got generalized to 
"orderedCollection" and the
"directory"-handling to "MapCollection".

Also, the generated JSON file is now a little bit "pretty-printed", such that 
inspecting it as a
human makes it comprehensible. :)

Ad JSON-Boolean: seeing that a true JSON Boolean is transported as a non-quoted 
constant ("true" or
"false"), this information is needed when generating a JSON file. To allow 
ooRexx programmers to
take advantage of this as easy as possible, I am experimenting with a specific 
class "JSON_Boolean".
The idea is, that a Rexx programmer supplies JSON boolean values on the Rexx 
side by using instances
of this class. OTOH, when reading JSON files it might be a good idea to create 
instances of this
class which behave like ooRexx logical values ("0", "1") transparently to the 
programmer. Will
experiment with this later this week.

The question is, whether you or anyone else is interested in the current 
version. If so, how should
I make it available  (eg. via DropBox, or as an individual e-Mail-attachment)?

---rony



On 14.07.2016 18:46, Rony wrote:
> Brandon,
>
> thank you very much! Have been on the road untl tomorrow, so it takes some 
> time for to check it
> out! (It seems you still have commit rights! :) )
>
> Best regards
>
> ---rony
>
> Rony G. Flatscher (mobil/e)
>
> Am 13.07.2016 um 22:52 schrieb Brandon Cherry <[email protected]
> <mailto:[email protected]>>:
>
>> Check it out the code is now on sourceforge.
>>
>> https://sourceforge.net/p/oorexx/code-0/HEAD/tree/sandbox/bwc/json/
>> -- 
>> Brandon Cherry
>> Network Engineer, Safe Data, Inc.
>> 800-488-7200 x3017
>> http://www.safedatausa.com/
>>

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev
_______________________________________________
Oorexx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oorexx-devel

Reply via email to