Pass json Data From Controller

In Controller


    
$json_data = json_encode([30, 40, 50, 60]);
$json_labels = json_encode(['first', 'second', 'third', 'fourth']);
    
        

In the php page



<charts-line :labels=<?php echo $json_labels; ?> :data=<?php echo $json_labels; ?>></charts-line>

      


<charts-line :labels="{ {$json_labels} }" :data="{ {$json_labels} }"></charts-line>