Add start of JSON parsing. Will finish tomorrow.