php – how to decode and print json in smart3-ThrowExceptions

Exception or error:

I am new with smarty. I have a key value paired json stored in my mysql table and I want to decode and print it with key without a loop. for example.

    "A": "100",
    "B": "200",
    "Cart": true

found decode method


but how i can echo like in php $json['A'];

How to solve:
{$myjson = $json|json_decode:true}





Leave a Reply

Your email address will not be published. Required fields are marked *