I have a JSON where it contains a key value as another JSON. How to get the second JSON key value?
{
currentEnvironment = prod;
prodappRatingCount = 2;
proddefaultCourse = "<null>";
“Check” = { "user":null,"removeDownloadedContents":true,"successCallBack":""}";
prodfirstTime = no;}
I want the value removeDownloadedContents key. How to get it using Swift
At the first you must use a proper JSON syntax, otherwise you can never ever parse it, here is an example for woking JSON:
...
... and here is a sample swift code to parse it: ...
... and this is how you can call the parser in your controller to fetch your data objects: ...
...