adonis-jsonable
JSON →Adonis-jsonable is a trait for AdonisJS Lucid models (v4.x) that automatically stringifies and parses PostgreSQL JSON fields. It solves the issue where knex.js requires JSON stringification before saving, but after saving the in-memory model retains the stringified value instead of the original object. Version 0.2.1, last updated in 2017, no active maintenance. Use it by defining jsonFields on your model or passing an array to this.addTrait. Only supports Adonis 4 with @adonisjs/fold peer dependency and the old provider system.
Resources
packageadonis-jsonable ↗