write to JSON Beginner - iphone

I need to find a good tutorial that would guide me to write to a JSON file. and also to read from a JSON file and populate core-data with it.
I have googled for days, and couldn't find a good tutorial. Can someone give me a sample code or point me to a good tutorial. I am new to objective-c

to introduce the structure of JSON, http://json.org/
and if you scroll down, you will find links to several open-source (which you can use as examples) projects which implement JSON serializing and deserializing. basically, there, you will find much more code examples in their projects than anyone here can ever really post as a response to your question.

Related

signing pdf using itextsharp 5.4.4 - example

Can someone supply an example or a link to an example that signs an existing pdf using itextsharp 5.4.4? Ideally keeping pdf/a conformity of the pdf? Thank you.
Edit: I understand the question looks as if I did not use google etc. BUT, new versions of itextsharp contain completely rewritten code for signing as well as other functions, making the existing examples non-functional. Also, itextsharp started using different names for methods eg. instead of createSignature one has CreateSignature, instead of getSignatureAppearance one seems to have SignatureAppearance etc. making the port from java examples a real nightmare. Also the samples in the source code itself are in java not c#. There is really nowhere else I can go.
Please read http://itextpdf.com/book/digitalsignatures
The examples are in Java, but they were also ported to C#. You can find the C# examples here. I didn't vote your question down, but... the first place to go when you have a question about iText should probably be http://itextpdf.com
The book I refer to (I'm the author) as well as the new examples are on the learn page.

JSON iphone help desperately needed

Hi desperate newbie in need of direction! Well I say newbie, I have almost built myself the app I set out to achieve, a tableview to display story titles from my website, that when touched using the navigation controller slides to the story/article.
Only problem is that I only have test data that is embedded into my views as an array (which is no good to me). I need this data to come from my website, www.theknowledgeoflondon.com. I want to take the title to display in the tableview and then when touch it slide to the actual article.
Been reading up and believe that JSON could be the answer or XML? I do not have a clue on this subject and if I thought learning object c and coco touch was hard this JSON OR XML thing seems to be a new world of PAIN for me!!! and there doesn’t seem to be anything by way of good tutorials out there for someone that has not a clue on the subject. My data is drawn from a simple MySql table from a php script and was hoping there is an easy way to feed this into my table view?
Would be very greatful for any information on a good way forward. Have already downloaded SBJson, but then read that JSONTouch is a good alternative to use. Or should I be using straight XML. Any help and good tutorials would be much appriciated.
Thanks you in advance.
Steve
I made an app last week that uses XML and I found it the easier way of doing what you want to do. But I found an awesome tutorial that I believe is perfect for what you are trying to do. It helps you create the web service needed and teaches you how to access the data that you wish to access.
http://www.raywenderlich.com/2941/how-to-write-a-simple-phpmysql-web-service-for-an-ios-app
and also check
http://www.raywenderlich.com/2965/how-to-write-an-ios-app-that-uses-a-web-service
And for even more information on web related subjects also have a look at www.w3schools.com it is an amazing website dedicated to teach about web technologies such as XML and the like.
Hope it helps you as much as it has helped me.
If you have the option to choose then I will suggest to use plist format. Open a plist file with a plain text editor. You will find that that is actually a XML file. The big advantage of using plist is that you don't need another parser. You can convert a plist file directly to NSArray using arrayWithContentsOfFile or arrayWithContentsOfURL or convert them directly to NSDictionary by using similar methods. And you can create them using plist editor of Mac easily.

How to use NSXMLParser?

I have some XML which I need parsed in my Objective-C code. The XML is fairly simple. I have already searched Stackoverflow as well as Google but I did not find what I am looking for. Examples if how to use NSXMLParser would be useful, and if anyone has any suggestions on how to do this another way please let me know.
Did you look at the Apple sample applications? From the NSXMLParser class reference, I found no fewer than five sample projects that did parsing.
GKTank
KMLViewer
LazyTableImages
SeismicXML (probably your best bet, and most directly related)
XMLPerformance
I recommend going through this tutorial by Ray Wenderlich:
http://www.raywenderlich.com/725/how-to-read-and-write-xml-documents-with-gdataxml
It uses GDataXML, which from my experience is a light-weight easy to use XML parser. It goes through all the basic steps to read and write to an XML document in a specific directory, including making or ammending to the file if it doesnt exist or exists respectively.

Creating rss feed with appcelerator

I'd like to create an RSS feed in my window does but I do not know how. I link the xml file that contains the videos, etc. but I do not know how it works excat.
Can you give me an example please because of the kitchen sink I did not understand.
Thank you
I found this one to be perfect:
http://gigaom.com/apple/tutorial-build-a-simple-rss-reader-for-iphone/
Make sure you build the whole project and try to read what is happening. It's only helpful when you actually code it yourself.
EDIT: I just now saw it was for Appcelerator. Check out this tutorial: http://twoappguys.com/blog/appcelerator-view-rss-feed/

GOLD Parse, how do you actually implement your code?

I am not quite sure how to implement my the code after generating the skeleton. I didnt use const only, i do have main files and i tried several c(++) versions along with c# and still i dont understand. I dont think any of them can load a file and parse test files (i know gold builder can parse my test files).
The Kessels C skeleton looks complete. Buts not, it uses a struct and members (Token->Reduction->TokenStack) yet when i search TokenStack i cant find a place where it is defined, only used. I feel like i am missing something. I cant find Kessels other code anywhere.
My question is how do i implement my body? (is there another skeleton you prefer), are there any other downloads i overlooked? i tried looking at these downloads but i didnt understand what to do with them. It also looked more like example source code then a template http://www.devincook.com/goldparser/engine/c/index.htm
PS: I wouldnt mind doing a C# implementation, i am better with c(++).
I've used the Calitha C# Engine. Let me know (by posting a comment to this answer) if you still want an answer, which I can answer using my knowledge of this C# engine.
My question is how do i implement my body? (is there another skeleton you prefer), are there any other downloads i overlooked?
The Calitha Engine download includes source for the Engine, and a sample program (named "TextCalc") which illustrates using it.