Advertisement
Guest User

Untitled

a guest
Dec 4th, 2016
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. info = ["list_order": 1, "name": Some Text, "id": 1, "menu_items": {
  2. 1 = {
  3. "food_name" = "String";
  4. "food_picture" = "link";
  5. "food_price" = "2.00";
  6. };
  7. 2 = {
  8. "food_name" = "String";
  9. "food_picture" = "link";
  10. "food_price" = "5.00";
  11. id = 2;
  12. };
  13. }]
  14.  
  15. info["menu_items"] = {
  16. 1 = {
  17. "food_name" = "String";
  18. "food_picture" = "link";
  19. "food_price" = "2.00";
  20. id = 1;
  21. };
  22. 2 = {
  23. "food_name" = "String";
  24. "food_picture" = "link";
  25. "food_price" = "5.00";
  26. id = 2;
  27. };
  28. }
  29.  
  30. let test = info["menu_items"] as? Dictionary<Int, Any>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement