This is my code on a Page template:
{{$videos = $record->customFieldDisplayByKey('youtube_json');}}
{{$videos = json_decode($videos, true);}}
{{print_r($videos);}}
I have tested the content of the field and it is a valid json format.
But when I decode it to use it as a php array, it is empty.