Fixed the infamous JSON parsing bug