How to save a JSON into a new existing table field from admin area?

Hello. 

We have the following scenario:

  • with a migration we add a JSON field to product table called ‚custom_ids‘

  • in admin we would like to use a multiple product selection(like on bundles) and those product ids should be saved into the table field ‚custom_ids‘ as an array

Practically we need to assign products to another products.

What would be the best practice here?

Any help would be appreciated

Best regards,

Sorin