If json_encode fails when API endpoint is called (e.g. UTF8 problem), fail gracefully using json_last_error() and json_last_error_msg() - check if they are available in PHP version used.
To reproduce, pass a parameter that decodes to invalid UTF8 string.
If json_encode fails when API endpoint is called (e.g. UTF8 problem), fail gracefully using json_last_error() and json_last_error_msg() - check if they are available in PHP version used.
To reproduce, pass a parameter that decodes to invalid UTF8 string.