is there any way to Pass 2 variable in one object Laravel JSON response

 return response()->json([
            'code'=>$codeTable->code,
            'data'=>$data,
             
        ]);

Is there any way to send both code and data as same object???