There is an unsaved comment in progress. You will lose your changes if you continue. Are you sure you want to reopen the work item?
IndexOutOfRangeException on parsing.
Hi. We're using fastJSON in an online game made using Unity. We're seeing quite a lot of IndexOutOfRangeExceptions in our crash reporting, and can't seem to get quite a hang of why it's crashing. We tried logging the string that is being parsed with our
crash reports, but that isn't working out quite as well as we expected. Do you have a check for whether a string is valid JSON or not, so we can respond appropriately. We're parsing data from a http response (in a coroutine). I've also attached the stack trace
so you can get an idea of what's happening:
Array index is out of range., fastJSON.JsonParser.NextTokenCore () fastJSON.JsonParser.LookAhead () fastJSON.JsonParser.ParseValue () fastJSON.JsonParser.Decode () fastJSON.JSON.Parse (System.String json)