first attempts at json parsing - first two tests passing after numerous modifications and fixes