ios - How to get rid of multiple sets of parentheses in an array -
i'm using restkit object mapping json , i'm mapping array. json i'm mapping looks this: "parameters":[{"parameter_value":["smith"]}, {"parameter_value":[66211]}] the array i'm getting looks this: parameter value: ( ( smith ), ( 66211 ) ) when try convert array string via code: nsstring *nameidvalue = [[parametervaluearray valueforkey:@"description"] componentsjoinedbystring:@""]; string nameidvalue turns this: ( smith )( 66211 ) how rid of parentheses i'm left smith, 66211 you asked eliminating "sets of parentheses", given underlying structure series of nested collections (dictionaries , arrays), can achieve desired effect collapsing level or 2 structure. can kvc collection operator , @unionofarrays , used in conjunction valueforkeypath . if want string manipulation, can that, seems more logical write code renders simple arra...