how we convert array to jaon in js laravel code example Example: laravel array to js var app = @json($array);