Warning: Undefined array key "pathway" in /home/clients/160b20c93964292618c158d21ce27bf5/sites/tech.org-services.ch/wp-content/themes/Newspaper/functions.php on line 543
Monday, December 5, 2022
HomeiOS Developmentios - Dictionary Append and create uncooked json for alamofire parameter swift

ios – Dictionary Append and create uncooked json for alamofire parameter swift


I’ve a dictionary that appears like this:-

var dict1 = ["Exam1": ["Math": "423423", "Science: "423"]]

var dict2 = ["day": "1", "day": "3 (Black) ", "class4": "Class4", "arrivalTime": "2022-11-25 17:09:08", "depatureTime": "2022-11-26 17:09:08"]

I need to append dict2 in above dict1 like beneath:-

var dict3 = ["day": "1", "day": "3 (Black) ", "class4": "Class4", "arrivalTime": "2022-11-25 17:09:08", "depatureTime": "2022-11-26 17:09:08","Exam1": ["Math": "423423", "Science: "423"]]

Primarily I am attempting to create one parameter after creating uncooked JSON however I am not ready to do that. I am actually confused about how to do that.

Query:- Can somebody please clarify to me the best way to create one parameter and after uncooked JSON from the parameter for alamofire, I’ve tried with some code however no outcomes but. I’ve searched so much however couldn’t discover a correct resolution. So please assist me to unravel this drawback.

Any assist can be drastically appreciated.

Thanks prematurely.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments