JSON (JavaScript Object Notation) is by far the most common data format when communicating
information through the internet. JSON data appears as a list or array of key value pairs:
[{key1: value1, key2: value2}, {key1: value3, key2: value4}, {key3: value5} ...]. In a
well-structured database, every item in the list would have the same keys. This would be
commom when using an API to query a relational database. However, in some data storage
formats, such as NoSQL (which you'll find with MongoDB), there is no such requirement
when it comes to keys.
In this table component, we can input SQL or NoSQL JSON data and get a multi-featured
table. The features include: pagination, filtering, and sorting. Data type detection is also
used to aid in filtering and sorting. Another feature allows recursive tables: if data type
detection detects a JSON list, it'll attempt to output a table inside the cell.
Copy/paste your own JSON data (with some limitations) to try it out yourself, or use my own
sample data. When using custom data, keys must be surrounded by double quotes. Use the GitHub link at the bottom of the page if you want to take a look under
the hood or workshop some ideas.