Writing into JSON file iOS Swift -


i have json file locally in app. want add new element in file programmatically. below json format -

{      "menu":{         "submenu":[            {               "name":"name1",             "link":"link2"          }     ]     } }  

i want add element in submenu below -

{      "menu":{         "submenu":[            {               "name":"name1",             "link":"link1"          },          {               "name":"name2",             "link":"link2"          }     ]     } }  

would possible programatically? thank!


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -