Our great sponsors
-
normalizr
Discontinued Normalizes nested JSON according to a schema [Moved to: https://github.com/paularmstrong/normalizr]
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
There is Normalizr which normalizes your data based on a schema. It then provides an interface to work with your data and fetch other parts of your data by id, much like a Dictionary.
Not knowing Normalizr at the time, I built something along the same lines. relational-json takes a schema, and returns a Table-based interface (a little like a database). The advantage of relational-json is that your data structure dynamically references other parts of your data (essentially, you can traverse your data in any direction, just like normal JS objects). It's not as mature as Normalizr, but I've been using it successfully in production for a few months now.
Related posts
- This is probably super easy for you guys, but how to I add to a nested array?
- Normalizr - How to generate slug/id related to parent entity
- How to define schema for recursive model with Normalizr
- Should data be normalized on the backend before being sent to the frontend?
- How do you handle an array of objects in JavaScript? Unless the way I'm using it is wrong, if I use built in JS functions like filter(), push(), map(), etc., oftentimes, it becomes too cluttered and prone to typo