publickeycredential parserequestoptionsfromjson