title: Convert string to dictionary?
body: <p>I have a QR code scanner which reads QR codes as a string. There are no options to detect it as a dictionary. So the only solution would be to convert it to a dictionary (i think). Keep in mind I am using swift and using AVFoundation, which is from apple.  </p>
  
  <p><a href="https://i.stack.imgur.com/BCVDe.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BCVDe.png" alt=""></a></p>
  
  <p>This QR code would print out ["test": "test123"] as a string. How would I convert it to a dictionary?</p>