0.2.1 • Published 2 years ago

@rentzsch/jsontable v0.2.1

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

JSON Table

JSON Table is a simple format extension of ndjson/JSON Lines that applies CSV-mindset to JSON tabular data.

It adds two requirements:

  1. Each line is an array.
  2. The first line specifies the column's names (and optional additional metadata).

Whereas a simple dataset might look like this in CSV:

id,firstName,lastName
1,Homer,Simpson
2,Marge,Simpson
3,Bart,Simpson
4,Lisa,Simpson
5,Maggie,Simpson

It would look like this in JSON Table:

["id", "firstName", "lastName"]
[1, "Homer", "Simpson"]
[2, "Marge", "Simpson"]
[3, "Bart", "Simpson"]
[4, "Lisa", "Simpson"]
[5, "Maggie", "Simpson"]

While JSON Tables is a little more verbose, in exchange you receive a modern (default UTF-8 encoding) unambiguous format that easily supports data nesting.

0.2.1

2 years ago

0.2.0

2 years ago

0.1.0

2 years ago