I'm working on a code base and need to use a Json response in laravel view. Currently in the view I'm returning the query result with:
<table>
<tbody>
</tbody>
</table>
and the response is:
HTTP/1.0 200 OK Cache-Control: no-cache Content-Type: application/json {"rows":[{"date":"2017-04-22","id":"5553","consumer_name":"Tabitha Henry","consumer_name_ctm":"Tabitha Henry","audio_url":"http://ift.tt/2prl6f5","consumer_ctm_phone":"+16305188154","email_msg":"","bid_amt":"$292 - $387","phone":"\u2713","email":""},{"date":"2017-04-21","id":"5817","consumer_name":"Josie Henle","consumer_name_ctm":" ","audio_url":"","consumer_ctm_phone":"","email_msg":"Do you have any availability for Sunday, April 30th? Would love to book you for quote #MM-27155 (one bedroom in Roger's Park to Skokie).","bid_amt":"$292 - $482","phone":"","email":"\u2713"},{"date":"2017-04-21","id":" ","consumer_name":null,"consumer_name_ctm":"Morgan Kenyon","audio_url":"http://ift.tt/2qkJsnS","consumer_ctm_phone":"+14058233483","email_msg":"","bid_amt":" ","phone":"\u2713","email":" "},{"date":"2017-04-20","id":"5722","consumer_name":"Jennifer Niendorf","consumer_name_ctm":" ","audio_url":"","consumer_ctm_phone":"","email_msg":"Hello, \nI was interested in your weekday moving rates.\nThanks!\nJennifer Niendoef","bid_amt":"$292 - $482","phone":"","email":"\u2713"},{"date":"2017-04-20","id":" ","consumer_name":null,"consumer_name_ctm":"Fears Cannon","audio_url":"http://ift.tt/2przoMD","consumer_ctm_phone":"+16302051722","email_msg":"","bid_amt":" ","phone":"\u2713","email":" "},{"date":"2017-04-19","id":" ",..........and so on.
I'm just not clear on how to convert this into usable information that I can loop over in the view. I really appreciate any help or suggestions.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire