### Laravel Version 12.21.0 ### PHP Version 8.4.6 ### Database Driver & Version _No response_ ### Description When calling `@json` with an array, the closing square bracket `]` is missing in the output. ### Steps To Reproduce Blade template: ```blade <script> const data = @json([ 'a' => 1, 'b' => 2, 'c' => 3, ]); </script> ``` Compiled output: ```php <script> <?php echo json_encode([ 'a' => 1, 'b' => 2, 'c' => 3) ?>; </script> ```