Saving a json file

Hey guys, I have that field table.json("custom_properties");

I’m trying to save it like this:

    const custom_properties = {
      title: name
    }

    media.merge({
      name: formatedName,
      custom_properties: custom_properties,
      updated_by: auth.user.id,
    })

and I’m having this error:

update media set custom_properties = {“title”:“banner-grande”}, created_at = ‘2020-06-24 13:42:20’, updated_at = ‘2020-06-25 09:37:47’ where id = 1 - ER_BAD_FIELD_ERROR: Unknown column ‘title’ in ‘field list’

Someone knows what is going on? How can I save that kind of field?

1 Like

What kind of DBMS u’re using?

Mysql, to be precise

Captura de Tela 2020-06-26 às 14.45.55

can u try this?

custom_properties: JSON.stringify(custom_properties),

Thank you mate, solved the problem

:nerd_face: