Is there a built-in way of determining the character offset in a string at which json_decode falls over when it is passed malformed json?

json_last_error simply returns JSON_ERROR_SYNTAX, but it doesn't tell you *where* in the JSON string the syntax error was found. For long JSON strings, this is a pain in the butt.