Corrected JSON parsing