basic json parsing in place