It’s probably not the route that you will go, but I will give this answer for completeness or simply because it is interesting to me:
JSON . mysqludf.org MYSQL JSON . JSON:
select json_array(
customer_id
,first_name
,last_name
,last_update
) as customer
from customer
where customer_id =1;
, .