I Need json response in this format {"tgas": ["tag1", "tag2" , "tag3"]}. But currenly it returns this in response. ``` {"title":"Post Title", "tgas":"tag1,tag2,tag3"}. Here is my php code
<?php
$response = array(
'title' => $title,
'plot'=> strip_tags($description),
'storline'=> strip_tags($storyline),
'tgas'=> ($tagsoutput) //"tgas":"tag1,tag2,tag3"
);
$rt = json_encode($response, true);