You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I changed it recently so it detects if json_last_error() is present, and if not it'll just throw an exception of code:
OfJSONException::ERR_JSON_UNKNOWN
The exception classes themselves are in src/OfException.php if you want to use that as well. Feel free to reuse the code with proper author/license notation, if you want.
json_decode will return null if the json is invalid. Check for it and return original content.
The text was updated successfully, but these errors were encountered: