title: WebAuth Error: Unhandled Rejection (TypeError): Failed to execute 'create' on 'CredentialsContainer': cannot convert to dictionary
body: <p>I'm having an issue using my JSON object in order to trigger a WebAuthn call in Javascript. On the written navigator.credentials.create() function it is expecting a publicKey object to start the initiation process.</p>
  <p>Right now I am using JSON.parse to parse a string into an object. After the response string is parsed, I am then passing it to the webAuthn navigator.credentials.create function but I am getting an error of:</p>
  <p><strong>WebAuth Error: Unhandled Rejection (TypeError): Failed to execute 'create' on 'CredentialsContainer': cannot convert to dictionary.</strong></p>
  <p>what could be the issue? I already parsed it to be an object, where all of the newline characters are removed. How can I get this object to be reconized? Thanks!</p>
  <p><strong>Original response string being passed</strong></p>
  <pre><code>&quot;\&quot;publicKey:  {\\n    challenge: new Uint8Array([&quot;testnumbers&quot;]).buffer,\\n    // Relying Party:\\n    rp: {\\n        name: \\\&quot;Test.com\\\&quot;,\\n        id: \\\&quot;test.com\\\&quot;\\n    },\\n    // User:\\n    user: {\\n        id: Uint8Array.from(\\\&quot;test\\\&quot;, function (c) { return c.charCodeAt(0) }),\\n        name: \\\&quot;test@gmail.com\\\&quot;,\\n        displayName: \\\&quot;test@gmail.com\\\&quot;\\n    },\\n    pubKeyCredParams: [\\n        {\\n            type: \\\&quot;public-key\\\&quot;,\\n            alg: -7\\n        }\\n,{\\n            type: \\\&quot;public-key\\\&quot;,\\n            alg: -257\\n        }\\n\\n    ],\\n    attestation: \\\&quot;none\\\&quot;,\\n    timeout: 60000,\\n    excludeCredentials: [],\\n    authenticatorSelection: {\\nuserVerification: \\\&quot;discouraged\\\&quot;,\\nauthenticatorAttachment: \\\&quot;cross-platform\\\&quot;\\n}\\n};\\n\\n\&quot;&quot;
  </code></pre>