JSONParser bug fix, btw it needs additional tests