I am generating an array from json:
val product_array:Option[Any] = scala.util.parsing.json.JSON.parseFull(products_json)
And then I want to pass it to a view like this:
Ok(views.html.payment(product_array))
In the "payment.scala.html" view I am wondering what to put on the top of the view. Something like this:
@(product_array: Array)
But that is not correct. What do I put on the top of the view?
Second question:
How do I loop through that array in the view "payment.scala.html"?