i have obtained the dictionary from json response and now i want to add this dictionary to my existing plist

i have obtained a jason response and it is further stored in a dictionary now i want to add this dictionary t my plist ,so that the plist can take values against entries from json response .how should i do it .

-------------Problems Reply------------

Try this:

NSString* myPath = [[NSBundle mainBundle] pathForResource:@"myFile" ofType:@"plist"];
NSDictionary* myDictionary = [[NSDictionary alloc] initWithContentsOfFile:myPath];

[myDictionary writeToFile:myPath atomically:YES];

In your case you already have the myDictionary, so try a writeToFile and add the path to the file you would like to write to.

Category:objective c Views:0 Time:2009-11-27

Related post

  • How to Extract a Enum value from an NSDictionary in iOS obtained by parsing a JSON response 2011-06-16

    I have a .net JSON web service which returns a json string when queried. I obtain that JSON string and parse it into a NSDictionary using SBJSON Parser. Now my .net web service adds an enum value to the response which when parsed into NSdictionary lo

  • Read Foursquare Json Response with JSON.NET 2012-03-01

    I am trying to access all the categories in the first level within a Foursquare response:- { "meta": { "code": 200 }, "response": { "categories": [{ "id": "4d4b7104d754a06370d81259", "name": "Arts & Entertainment", "pluralName": "Arts & Enter

  • Word 2003 Add to Dictionary greyed out 2012-05-21

    I am running Word 2003 on Vista Home Premium. Up until about 6 months ago, I could right click on a word that was underlined, and "Add to Dictionary". Recently, I have been getting messages that 'the ---- dictionary is not installed' [I do a lot of F

  • Copying JSON response dictionary to plist 2009-11-28

    I have a dictionary containing a JSON response and a plist file. I want to update the values in my plist file with the JSON response values. How would I do this? --------------Solutions------------- this is what i did, im working on it now, but im ge

  • How to parse JSON Response into Dictionary? 2011-06-16

    I have a JSON resonse (HTTPWebResponse) coming back from my WCF Service. It looks like this : { "New SessionResult": [ { "Key": "Token", "Value": "token_value" } ] } I am using JSON.NET (http://james.newtonking.com) and I cant figure out how to deser

  • How can I catch server json response while uploading image using Ajax? 2010-02-02

    I have a form which is loaded via jQuery from the external template file: $('#imguploadform').html('&nbsp;').load('{% url upload_form %}'); In template it looks like this: <img src="{{ MEDIA_URL }}img/misc/upload.png" alt="Illustration" title=

  • Creating a JSON response using Django and Python 2010-03-11

    I'm trying to convert a server side Ajax response script into a Django HttpResponse, but apparently it's not working. This is the server-side script: /* RECEIVE VALUE */ $validateValue=$_POST['validateValue']; $validateId=$_POST['validateId']; $valid

  • Parsing Facebook Open Graph API JSON Response in C# 2010-07-14

    I try to get parse JSON response for the following link: https://graph.facebook.com/feed/?ids=135395949809348,149531474996&access_token= The response is like that: { "135395949809348": { "data": [ { ....Some data }] } , "325475509465": { "data":

  • How to move to the next page in Facebook JSON response using iOS SDK? 2011-01-27

    In Facebook iOS SDK, I can ask for queries like this: [_facebook requestWithGraphPath:@"me/feed" andDelegate:self]; But often Facebook will give a limited JSON response with a URL to be used to request to move to earlier dates, for example. So in the

  • Rails, json response problem 2011-05-24

    I have a problem obtaining Json response, I have an action in my controller def on_card @cart = current_cart @on_card = @cart.products_count respond_to do |format| format.json { render :json=> @on_card.to_json } end end in my application.js I try

  • Google Geocoding API. I have a problem with parsing json response 2011-06-28

    I have a problem with parsing json response. My error is: [__NSArrayI objectForKey:]: unrecognized selector sent to instance. As I see the params should be NSDictionary. Why does the params is an NSArray? enter code hereNSDictionary *dictionary = [[C

  • Standardised JSON response from views 2011-07-07

    When my page POSTs a form to my Django view, the view returns a response with some data but soon I ran into the issue that my views returned data in different formats and different sets of information. I've thought of using JSON as a standard format

  • How To Parse And Extract Nested JSON Response Using SBJson And Objective-C 2011-08-13

    Could anyone tell me how to parse and extract just the data node, i.e. CM, Dozen, Foot..., from the JSON response below into an NSMutableArray, so it can be used as data source for UITableView? {success: true, dataCount: 11, data: [{"unitName":"CM"},

  • Parsing C# Dictionary with JSON 2011-09-03

    I am trying to retrieve a Dictionary of key/value pairs from my C# application with JSON, but I am screwing up somewhere. This is my first time with JSON so I am probably just doing something stupid. C# Code: else if (string.Equals(request, "getchat"

  • NSArray contains NSDictionary instead of containing objects after json response 2011-09-07

    I have a class called MobileResponse as like as below. @interface MobileResponse : NSObject { double AppVersion; NSMutableArray *Busses; NSMutableArray *Cities; NSString *Error; NSMutableArray *Lines; NSMutableArray *Points; NSMutableArray *Schedules

  • How do I get phone number from this JSON response? 2011-11-21

    A little humour : Nerds always have problem getting phone number :(. I am trying to get phone number from this Google places api response, Developing application on iOS. { "html_attributions" : [], "result" : { "address_components" : [ { "long_name"

  • unable to parse json response from google 2011-12-09

    I am trying to parse Json response from This URL. I have used SBJsonParser, MTJSON and another parser but i am getting NULL in all three case. apiUrlStr = @"http://maps.google.com/maps?output=dragdir&saddr=Delhi&daddr=Mumbai+to:hyderabad"; NS

  • Complex JSON Response for iOS 2011-12-12

    I am working some portion of twitter api, and getting some JSON response using ASIHTTPREQUEST. Below is how the json representation looks like: ( { contributors = "<null>"; coordinates = "<null>"; "created_at" = "Tue Nov 29 15:48:35 +0000

  • android json response key value, parsing 2012-01-10

    i get a JSON response from a web service: {"CoverageSearchByLatLongResult":{"HasTransmissionAreasWithSignal":true,"SwitchOffArea": {"OpenForVastApplications":false,"SeperateTileSetUrl":"http:\/\/myswitch.merged.stage.orchard.net.au\/geodatafiles\/Swi

Copyright (C) dskims.com, All Rights Reserved.

processed in 0.153 (s). 11 q(s)