title: Converting Data to JSON String using Swift in iOS
body: <p>I have a <code>NSData</code> object which needs to be converted to <code>[String:Any]</code> and here is the code I tried:</p>
  
  <pre><code>let multiOrder = _fields["multiOrder"] as? GPBValue
  if let _ = multiOrder {
    let data = NSKeyedArchiver.archivedData(withRootObject: multiOrder!)
    if let responseString = String(data: data, encoding: .utf8) {
      print(responseString)
    }
  }
  </code></pre>
  
  <p><code>GPBValue</code> object  looks like <code>NSObject&lt;NSSecureCoding, NSCopying&gt;</code></p>
  
  <p>But the above code is returning <code>nil</code></p>