How could I refactor this into more manageable methods?
- by ChaosPandion
private static JsonStructure Parse(string jsonText, bool throwException)
{
var result = default(JsonStructure);
var structureStack = new Stack<JsonStructure>();
var keyStack = new Stack<string>();
var current = default(JsonStructure);
var currentState = ParserState.Begin;
var invalidToken = false;
var key =…