Formatters

Lines to JSON Array

Lines to JSON string array.

How to use Lines to JSON Array

Lines to JSON Array — Turn each line into a JSON string and return a JSON array. Free to use in D2i DevTools — no account required.

Steps

  1. Fill in Lines. This field is required.
  2. Click Run and copy the result under the form.

Frequently asked questions

What is Lines to JSON Array used for?

Use it to build a JSON array of ids, hosts, or names from a list.

How do I use the free online Lines to JSON Array tool?

Fill in Lines. This field is required. Click Run and copy the result under the form.

What can I paste or upload into Lines to JSON Array?

Paste one item per line. Empty lines become empty strings in the array.

What output does Lines to JSON Array give me?

A JSON array. Quotes and backslashes inside a line are escaped. The array is a single JSON value.

Is Lines to JSON Array free, and is my input private?

Yes — Your input is processed in memory for this request only. It is not saved to disk or the database, and it is cleared after the tool finishes.

How do I drop blank lines first?

Run Remove Empty Lines, then paste the result here, if blanks should not become "".

Inputs are processed in memory only and are not saved to disk or the database. Data exists only for the duration of your request.