This is what JSON server is waiting for me
$_POST['json_function'] = '{ "params": { "auth_token": "32342fgh5u6jwjwu25uargat35y", "contacts": [{ "name": "Cheesy", "phone": ["555-478-7672", "555-478-7673"] }, { "name": "Daniel", "phone": ["(555) 564-8583", "####"] }] }, "func": "getContact" } ';
problem in making this construct
"contacts": [{ "name": "Cheesy", "phone": ["555-478-7672", "555-478-7673"] }, { "name": "Daniel", "phone": ["(555) 564-8583", "####"] }] There is an array of names and phone arrays
Contacts.arrContacts Contacts.idPhoneNumber This is how I create JSON
let jsonGetContacts : JSON = [ "func" : "getContact", "params" : [ "auth_token" : "\(userToken)", "contacts" : ?????? ] ] How to collect this case, I need help guys