Python Forum
Deeply nested JSON editing tool w/set arithmetic
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Deeply nested JSON editing tool w/set arithmetic
Hey y'all, I'd like to get some feedback on a JSON editing tool I recently published: This pulls together some techniques I've employed over the years to use standard Unix line based tools like vim, sed, diff and grep to edit complex highly nested JSON. The tool converts JSON to an intermediate denormalized form for editing, then converts back to standard JSON to render the edits. It's somewhat similar to JSON-patch and JSON-streaming, but the denormalized form places each individual path on its own line allowing easier editing and diffing.

The tool can also perform deep merges ("a.json | b.json"), differences ("a.json - b.json") and intersections ("a.json & b.json") on pairs of JSON files.

Lastly, JSON files can be easily split and merged in arbitrary ways. For example, it's easy to merge a directory of JSON files into a single file, split a large file in to arbitrarily many smaller files, or transform n JSON files into m JSON files.

Please see for some documentation and examples. Install with "pip install jsonsam".

I'm particularly interested in feedback regarding packaging and distribution as this is my first time publishing to PyPI, but any and all feedback, including the code itself, is enthusiastically welcomed.

Thank you!

- Eric

Messages In This Thread
Deeply nested JSON editing tool w/set arithmetic - by epieye - Sep-13-2021, 06:04 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  A context to exit deeply nested loops Gribouillis 3 1,593 May-19-2019, 08:28 AM
Last Post: Gribouillis

Forum Jump:

User Panel Messages

Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020