If you have a data object that is json encoded and need to iterate through the inner data objcets here are different suggestions
Sometimes, you will need to transform a php array into a json string in order to send it to a javascript code to work on it. In this case you will have to use the php built in function json_encode($phpArray) and then in javascript code, you have to transform this json string into an object so that you can iterate over it or do whatever you want with it, Now on javascript you can do this by using JSON.parse(allSearchableTags)
IN javascript you can convert js data such as array into JSON using JSON.stringfy() , and back from JSON to js array using JSON.Parse, Here is the syntax :
this snippet will teach you how to pass javascript array from javascript to laravel controller in the url and how to get that array back in laravel controller