Remove old json_encode call