why is php array sending a string in js code example Example: laravel array to js var app = @json($array);