Refactored the JSON parser and fixed MULTIPLE logic errors. Hopefully it's all good now.