Just use CAST function like this:
UPDATE tasks SET outputFields = JSON_SET(outputFields, '$.checkbox', cast('["Chien","Chat"]' as json)) WHERE id = 6832
Answer from Julien on Stack OverflowMySQL
dev.mysql.com › doc › refman › 9.7 › en › json-modification-functions.html
MySQL :: MySQL 9.7 Reference Manual :: 14.17.4 Functions That Modify JSON Values
JSON_SET() replaces existing values and adds nonexisting values. JSON_INSERT() inserts values without replacing existing values. JSON_REPLACE() replaces only existing values. The following examples illustrate these differences, using one path that does exist in the document ($.a) and another ...
MySQL Tutorial
mysqltutorial.org › home › mysql json › mysql json_set() function
MySQL JSON_SET() Function
November 3, 2023 - The JSON_SET() function allows you to replace existing values or add non-existing values to a JSON document.
Videos
03:47
Episode-040 - Updating JSON Data in MySQL - YouTube
02:31
Episode-039 - Insert and Select JSON Data in MySQL - YouTube
19:12
Learning MySQL - JSON in MySQL - YouTube
19:28
JSON Data Improvements in MySQL 8.0 - YouTube
Learning MySQL - JSON in MySQL
36:14
MySQL, JSON, & You: Perfect Together - YouTube
MySQL
dev.mysql.com › doc › refman › 8.4 › en › json-search-functions.html
MySQL :: MySQL 8.4 Reference Manual :: 14.17.3 Functions That Search JSON Values
The return value is 0 if no specified path exists within the document. Otherwise, the return value depends on the one_or_all argument: 'one': 1 if at least one path exists within the document, 0 otherwise. 'all': 1 if all paths exist within the document, 0 otherwise. mysql> SET ...
MySQL
dev.mysql.com › doc › refman › 9.6 › en › json.html
MySQL :: MySQL 9.6 Reference Manual :: 13.5 The JSON Data Type
In MySQL 9.6, the optimizer can perform a partial, in-place update of a JSON column instead of removing the old document and writing the new document in its entirety to the column. This optimization can be performed for an update that meets the following conditions: The column being updated was declared as JSON. The UPDATE statement uses any of the three functions JSON_SET(), JSON_REPLACE(), or JSON_REMOVE() to update the column.
MySQL
dev.mysql.com › doc › refman › 8.4 › en › json-creation-functions.html
MySQL :: MySQL 8.4 Reference Manual :: 14.17.2 Functions That Create JSON Values
mysql> SELECT JSON_QUOTE('null'), ... functions generating JSON values are available. JSON_ARRAYAGG() returns a result set as a single JSON array, and JSON_OBJECTAGG() returns a result set as a single JSON object....
jOOQ
jooq.org › doc › latest › manual › sql-building › column-expressions › json-functions › json-set-function
JSON_SET
The MySQL style JSON_SET function is a function that adds (like JSON_INSERT) or replaces (JSON_REPLACE) a value in a JSON document, given a JSON path.
MySQL
dev.mysql.com › doc › refman › 8.4 › en › json-modification-functions.html
MySQL :: MySQL 8.4 Reference Manual :: 14.17.4 Functions That Modify JSON Values
JSON_SET() replaces existing values and adds nonexisting values. JSON_INSERT() inserts values without replacing existing values. JSON_REPLACE() replaces only existing values. The following examples illustrate these differences, using one path that does exist in the document ($.a) and another ...
MySQL
dev.mysql.com › doc › refman › 8.4 › en › json-function-reference.html
MySQL :: MySQL 8.4 Reference Manual :: 14.17.1 JSON Function Reference
MySQL supports two aggregate JSON functions JSON_ARRAYAGG() and JSON_OBJECTAGG().
MySQL
dev.mysql.com › doc › refman › 8.4 › en › json-utility-functions.html
MySQL :: MySQL 8.4 Reference Manual :: 14.17.8 JSON Utility Functions
This means that this function always shows the space currently used to store a JSON document in a user variable: mysql> SET @j = '[100, "sakila", [1, 3, 5], 425.05]'; Query OK, 0 rows affected (0.00 sec) mysql> SELECT @j, JSON_STORAGE_SIZE(@j) AS Size; +------------------------------------+------+ | @j | Size | +------------------------------------+------+ | [100, "sakila", [1, 3, 5], 425.05] | 45 | +------------------------------------+------+ 1 row in set (0.00 sec) mysql> SET @j = JSON_SET(@j, '$[1]', "json"); Query OK, 0 rows affected (0.00 sec) mysql> SELECT @j, JSON_STORAGE_SIZE(@j) AS S
Sqliz
sqliz.com › mysql-ref › json_set
MySQL JSON_SET() Function
In MySQL, the JSON_SET() function inserts or updates data in a JSON document and return a new JSON document.
MySQL
dev.mysql.com › blog-archive › partial-update-of-json-values
MySQL :: Partial update of JSON values
MySQL 8.0 speeds up some updates of JSON values, if the updates change small parts of big JSON documents using the JSON_SET, JSON_REPLACE and JSON_REMOVE functions. The speed-up can be seen out of the box.
Database Guide
database.guide › json_set-insert-or-update-values-in-a-json-document-in-mysql
JSON_SET() – Insert or Update Values in a JSON Document in MySQL
In MySQL, the JSON_SET() function inserts or updates values in a JSON document and returns the result.
Percona
docs.percona.com › percona-server › 8.4 › json-overview.html
Percona Server for MySQL - JSON in Percona Server for MySQL
The settings column stores JSON data. You can use JSON_EXTRACT() to get the value of a specific key, like theme. JSON in Percona Server for MySQL gives you have the flexibility of NoSQL with the reliability and querying power of a relational ...
MySQL
dev.mysql.com › doc › en › json.html
MySQL :: MySQL 8.4 Reference Manual :: 13.5 The JSON Data Type
In MySQL 8.4, the optimizer can perform a partial, in-place update of a JSON column instead of removing the old document and writing the new document in its entirety to the column. This optimization can be performed for an update that meets the following conditions: The column being updated was declared as JSON. The UPDATE statement uses any of the three functions JSON_SET(), JSON_REPLACE(), or JSON_REMOVE() to update the column.
W3Resource
w3resource.com › mysql-exercises › mysql-queries-to-update-a-value-within-a-json-document-stored-in-a-column-using-the-json_set-function.php
Modify JSON Data in MySQL using JSON_SET
October 17, 2025 - JSON_SET allows for partial updates of a JSON document. Ensure that the JSON structure remains valid after the update. ... Write a MySQL query to update a nested key value within a JSON document stored in a column.