I have below string:
{"list": {"array":[{"current_rate":20.0,"id":1, "name": "abc"},
{"current_rate":20.0,"id":2, "name": "xyz"}]}}
I want to convert above string into array like
[current_rate: 20.0, id: 1, name: abc]
I used componentSeperatedByString:@":".
But it gives problem when name field contain “:” string.
Is there any way to convert above string into array.
The string you have seems valid JSON. You may want to parse it:
Then you can get the object using the
objectForKey:andobjectAtIndex:methods on the appropriate classes.