First, thanks for forking j2cli. I filed an issue with the upstream repo but that is dead now so I thought I'd file it here :)
A lot of the times that I could use j2cli the input JSON isn't a dictionary but is a plain array, for example the output from GitLab's pipeline API is an array of dictionaries.
Currently, this causes j2cli to error out. Maybe j2cli could detect that the top-level object is a list not a dict and pass it as a named variable (data?) in the environment?