Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- info = ["list_order": 1, "name": Some Text, "id": 1, "menu_items": {
- 1 = {
- "food_name" = "String";
- "food_picture" = "link";
- "food_price" = "2.00";
- };
- 2 = {
- "food_name" = "String";
- "food_picture" = "link";
- "food_price" = "5.00";
- id = 2;
- };
- }]
- info["menu_items"] = {
- 1 = {
- "food_name" = "String";
- "food_picture" = "link";
- "food_price" = "2.00";
- id = 1;
- };
- 2 = {
- "food_name" = "String";
- "food_picture" = "link";
- "food_price" = "5.00";
- id = 2;
- };
- }
- let test = info["menu_items"] as? Dictionary<Int, Any>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement