Updated JSON parsing.