Typo: 'cty' instead of 'typ' when parsing json header.