I know how to set up a json_decode
function in twig.. but why is there no native support for decoding in twig? I can easily call json_encode
without setting up a Twig Filter, but that is not the case for json_decode
.
It seems logical to have it has a native function. Am I missing the rational behind not having it? Maybe it's computationally expensive?