How to Decode JSON in Twig Symfony 4.3
问题 How to decode a JSON data in Twig this is my code in my controller public function testoutput($id) { $form = $this->getDoctrine() ->getRepository(ApplicationForm::class) ->findAll(); return $this->render('testoutput.html.twig', array('form' => $form));} My database looks like this. id | jsonData | dateSigned ===|================================= |============ 1 | {"fname":"Jan", "lname": "Jake"} | 10-09-2019 ===|==================================|=========== 2 | {"fname":"Mike", "lname": "Ham