How do I convert a nested array of Woocommerce products into a Javascript object?
I am trying to access the stock_quantity, ID and SKU for woocommerce products in a php array. I need to get the SKU to compare it against a value in my JavaScript code so that I can display the stock_quantity…