Added initial json parsing code.