I’m pulling data from an API into Postgres. One of the fields/columns in the database is JSON. The structure of the JSON is different for each record I pull into the database.
Here are the traits from record 1.
Here are the traits from record 2.
Here are traits from record 3.
Each of these records is the parent of a set of items and the traits are how we filter the items in a list. I want to display them in a filter list like the image below. They will always be one of two types, a group of checkboxes or a range with min/max, but the code will need to be able to determine which type to use based on the data in the JSON at display time. Both types can exist in the JSON for one record.
Mentioning @mebeingken and @sid in case either is available for a small project and thinks this is possible.