protected static string ParseNumber(char[] json, ref int index, ref bool success) { JsonParser.EatWhitespace(json, ref index); int lastIndexOfNumber = JsonParser.GetLastIndexOfNumber(json, index); int length = lastIndexOfNumber - index + 1; string result = new string(json, index, length); success = true; index = lastIndexOfNumber + 1; return(result); }