× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Brad,

Python really is probably the best way.
I’ll be developing an rpg pgm that allows you to input a filename and it will pretty the json and return the pretty json.
https://pynative.com/python-prettyprint-json-data/

I’ll post the GitHub link when I’m done.

Then you can take advantage of my open source that uses open source. :)

Jay

On Jan 31, 2022, at 8:01 PM, Jay Vaughn <jeffersonvaughn@xxxxxxxxx> wrote:



Sent from my iPhone

Begin forwarded message:

From: Brad Stone <bvstone@xxxxxxxxx>
Date: January 31, 2022 at 4:05:58 PM EST
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxxxxxxxx>
Subject: Re: Making existing JSON "pretty" before EDTF or DSPF
Reply-To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxxxxxxxx>

Jack,

I specifically said YAJL, not open source. Yes, YAJL is open source, but I
think you knew by "open source" meant not something outside the realm of
that, specifically requiring python, node, etc.

Thanks to Scott for providing some info and something to look into.

On Mon, Jan 31, 2022 at 2:50 PM Jack Woehr via MIDRANGE-L <
midrange-l@xxxxxxxxxxxxxxxxxx> wrote:

On Mon, Jan 31, 2022 at 1:45 PM Scott Klement <midrange-l@xxxxxxxxxxxxxxxx

wrote:

Err... well... YAJL is open source.

If you wanted to do this with YAJL, here's what comes to mind:

1) call yajl_stmf_load_tree
2) call yajl_stringify. Currently this does not have an option to
beautify the code, though, so you'd need to add a new optional parameter
to the subprocedure to make it do a beautify. If you look at the
current stringify code, you can see where it's setting beautify to 0, so
you'd just need to check if the parm is passed and is *on, pass a 1
instead.
3) write the output of stringify to the temp file.
4) Clean stuff up, etc.

And Scott's 4th point above, aye, there's the rub.
"Clean stuff up" means "use the open source tool appropriate for that
particular task".

1999 called and left a message: The era of monolithic applications is over.
Learn to string together open source tools in a pipeline of productivity.


--
Jack Woehr, IBM Champion 2021
<
https://www.youracclaim.com/badges/528d23d6-087f-4698-8d17-d59688106ac4/public_url

Absolute Performance, Inc.
12303 Airport Way, Suite 100
Broomfield, CO 80021

NON-DISCLOSURE NOTICE: This communication including any and all
attachments is for the intended recipient(s) only and may contain
confidential and privileged information. If you are not the intended
recipient of this communication, any disclosure, copying further
distribution or use of this communication is prohibited. If you received
this communication in error, please contact the sender and delete/destroy
all copies of this communication immediately.
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related questions.

Help support midrange.com by shopping at amazon.com with our affiliate link: https://amazon.midrange.com

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.