Convert JSONL to HCL
Turn JSONL files into HCL. One list with an entry per line.
Converted in an isolated sandbox on our serversDeleted after 24 hours
Drop JSONL files on the dialor turn it to pick what to do
JSON Lines as HCL attributes.One file comes out, with the values and the key order of your lines kept.
What you get
One HCL file. The entries of your JSONL file, one per line, are read as one list and written as HCL attributes. Values and key order stay as they are in the source.
Blank lines in the JSONL file are skipped.
How the entries are written
If the top level is a list, it becomes the attribute
items. If the top level is an object, its keys become attributes, and they must be identifiers. Keys inside nested objects are quoted. Nulls stay null.Going the other way
To turn HCL back into lines, use HCL to JSONL. To see the other options for this format, there is a page for every JSONL conversion.
JSONL and HCL.What each format is.
The formats
JSON Lines
JSON Lines, one JSON object per line, the format of logs and datasets.
- Extensions
- .jsonl .ndjson
- MIME type
- application
/jsonl - Kind
- Text and data
HCL
HashiCorp Configuration Language, what Terraform and Packer files are written in.
- Extensions
- .hcl .tf .tfvars
- MIME type
- application
/x -hcl - Kind
- Text and data
In your code.The same JSONL to HCL conversion through the API, for your app or your agent.
$ cv convert report.jsonl report.hcl$ cv convert report.jsonl report.hclQuestions.What people ask about JSONL to HCL.
Yes. Values and key order are kept.
They are skipped. Only lines with an entry are read.
A top-level list becomes the attribute items.
The keys of a top-level object must be identifiers. Nested keys are quoted, so they do not have that limit.