Fixed the "getJson" method.