Skip to content

String conversion to JSON not working as it should. #452

@ppinel

Description

@ppinel

Hello,

I have troubles using json as string with mariadb and Objection.js.
I tagged my column as json in knex migration file. This should just fallback on text and it does.

My issue is when I use Objection.js to get data from database. As I saw in code, it should try to convert any string to JSON. It doesn't for in my case.
In a column I have a stringify json object and I am expecting Objection to parse it in $parseDatabaseJson when a query is made.

Is it correct?

PS: I tried Bookshelf and Objection, I end up with Objection because I found it better to work with.
Thanks for your hardwork.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions