Changed double to single quotes at checkbox value
Added intval when encoding id_category and id_product to JSON to avoid unneccesary double quotes around ids