Vadim Dalecky1 day ago

Key-prefixed encoding for JSON-like data. Inspired by PEON.

In PEON:

Where leading prefix at start of each line, is the length of JSON Path re-used from the previous line.

Instead of using number of characters as key-prefix, use the node depth instead:

Removing un-necessary punctuation:

Another variant where the stack depth is represented by the number of > characters, potentially more visually understandable:

Prefix summary:

  • . — object key name, e.g.: .bob

  • : — array index, e.g.: :1

  • , — range request, e.g.: ,5,0

Inserting inside a string node. Format is retain: number, delete: number, and then the string to insert. Insertion is a range request, which starts with , prefix.

For example, add "!" after "Alice":