× 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.



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.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

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.