|
Err... well... YAJL is open source."Clean stuff up" means "use the open source tool appropriate for that
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.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.