| 3 | 3 | * It's not quite clear to me why we only append `json_last_error_msg()` if there is no error code. In my testing, that leads to not getting any additional information about the error, while the actual error in my case was "Malformed UTF-8 characters, possibly incorrectly encoded". If `json_last_error()` is `JSON_ERROR_NONE` or empty, I don't think `json_encode()` would have returned `false` in the first place, unless I'm missing something. So I think it would make sense to always include `json_last_error_msg()` here. Something like: |