Fixed issue with API POST based parameters to be more compatible with URL style post body. API now returning valid JSON null when the response object is null, added error handling for json_encode when performed after an API call.