I use jq fairly regularly for cleaning up JSON and pretty-printing. > One related page I found is titled "jq is sed for JSON".
That's a pretty fair statement. And like sed, you can do some pretty powerful transformations. And like sed, there comes a point where it becomes easier to use some scripting language with a JSON module (e.g. perl, python, ruby) rather than wrangle with the jq syntax. Unfortunately, I don't have any links to good tutorials. Most of my experience has been to google for the task at hand and read other people's jq code. Good luck and let us know how it goes. Regards, - Robert On Wed, Aug 8, 2018 at 6:06 AM, Richard Owlett <[email protected]> wrote: > My bookmarks have grown like Topsy > I have many duplicates and the tree structure is a mess. > I have two primary goals: > 1. find and purge duplicates. > 2. move folders around to create a more reasonable structure. > > After trying several approaches and looking for useful tools I found > jq [https://stedolan.github.io/jq/]. One related page I found is titled "jq > is sed for JSON". > > An outline of a possible procedure might be: > 1. Export SeaMonkey bookmarks in JSON format. > 2. use jq to pretty print the JSON. It does so nicely. > 3. Find duplicate targets and delete all but one. > 4. Each leaf of the bookmark tree is an object. > Move these objects around to create a more friendly tree. > 5. Import the clean organized bookmarks. > > Has anyone done this? > Is there a friendly in depth jq tutorial? The ones I've found tend to be on > the "Hello world" level. There is just enough to tantalize. > > Links of interest include: > https://stedolan.github.io/jq/manual/v1.5/ > http://stedolan.github.io/jq/tutorial/ > https://robots.thoughtbot.com/jq-is-sed-for-json > > > > > > _______________________________________________ > PLUG mailing list > [email protected] > http://lists.pdxlinux.org/mailman/listinfo/plug _______________________________________________ PLUG mailing list [email protected] http://lists.pdxlinux.org/mailman/listinfo/plug
