The content array must be encoded before returned

This commit is contained in:
Alex Tselegidis 2021-10-27 11:44:45 +02:00
parent c495cd8225
commit c1db2b636c
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ if ( ! function_exists('json_response'))
->output
->set_status_header($status)
->set_content_type('application/json')
->set_output($content);
->set_output(json_encode($content));
}
}