Read value of an array json_encode laravel

0

I did a query to the database ( BD ) which then transforms by means json_encode() to show it in the view blade and the result is this:

[{"monto":"44"},{"monto":"0"},{"monto":"5640"},{"monto":"0"},{"monto":"0"},{"monto":"0"},{"monto":"0"},{"monto":"0"},{"monto":"0"},{"monto":"456"},{"monto":"186685"},{"monto":"0"}]

The problem is that I do not know how to get a value specific to that arrangement.

    
asked by Jean Carlos Hernandez 27.11.2017 в 17:14
source

1 answer

1

If it is in javascript totalmes [0] .monto

    
answered by 27.11.2017 / 20:02
source