I get json from web service. I am parsing this using the TouchJSON library. I save data for the user to change certain values, and then I want to return it to the web service.
The JSON object that I get contains the NSDictionary objects in the object, for example:
[ { "id": null, "created_at": 12332343, "object": { "name": "Some name", "age" : 30 }, "scope": "it stuff", "kind_id": 1, "valid": true, "refering_statement": { "id": 95 }, "user": { "id": 1 } } ]
If I want to change the values ββin this dictionary, I cannot, because the returned objects from TouchJSON are not changed.
Is there a way to return modified TouchJSON objects?
or is there a way that Objective-C creates an NSDictionary and all its children change?
or do I just need to go through each NSDictionary in an NSDictionary and copy all the data into a mutable copy and then re-paste everything?
Hope someone can help me with this :) Thanks in advance.
source share