Reputation: 11
I just want to access the "Elevator" value in this json object. How to do this in Laravel blade templates ?
thanks !
{"delivery_floor":null,"pickup_floor":null,"Elevator":"Yes","Elevator2":"Yes","disassembled":"Yes","reassembled":"Yes","shipment_title":""}
Upvotes: 0
Views: 743
Reputation: 5270
You have to use following code
@php $jsonDecodeValue = json_decode($your_variable,true); @endphp
{{ $jsonDecodeValue['Elevator']}}
Upvotes: 1