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

View file

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