function json_encode($data=array(),$response=200) { $content_type = array('Content-type'=>'application/json'); if($data) return new \Response(json_encode($data),$response,$content_type); } function json_decode($data=array(),$response=200) { $content_type = array('Content-type'=>'application/json'); if($data) return new \Response(json_decode($data),$response,$content_type); }not work
It looks like you're new here. If you want to get involved, click one of these buttons!