What is equivalent to Hashmap(of python and java) in swift ?? except dictionary i already used it didn't worked for me :(

i am using odoo OpenERP based python api which takes a hash-map in its function but when i calling that from my swift code i passed a dictionary. i tried many thing apart from dictionary what should i do ? because []square bracket of dictionary refused by python api and it uses {} curly braces in hash map) i am confused.

How do you connect your Swift code to the Python code?

(Network? Embedded interpreter? ...?)

Can you post an error message and the line(s) of code that causes that error?

via AlamofireXMLRPC framwork

let dictionary:[String: AnyObject] = ["lang":"es_AR"]

let param: [Any] = ["db",uid,"password","res.users","read",ids,field,dictionary];


AlamofireXMLRPC.request("https://myurl",methodName: "execute", parameters: param).responseXMLDocument { (response: Response<AEXMLDocument,NSError>) in

print(response.result);

in fields_get ctx = (context or {}).copy()AttributeError: &apos;str&apos; object has no attribute &apos;copy&apos;

I'm use AlamofireXMLRPC but i don't Know how convert xml data to json data or Object

you can help me please


thanks

What is equivalent to Hashmap(of python and java) in swift ?? except dictionary i already used it didn't worked for me :(
 
 
Q