Thanks for this, it was instructive. Note, there's https://nickel-lang.org/ too.
I recently ripped out HCL support from my side project in favour of json. I am planning to write some support code in Nickel (types, schema, functions) to help with the verboseness of json.