<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-5901847536682208121</id><updated>2024-09-27T14:40:26.952-07:00</updated><title type='text'>Pranjal</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://pranjalpratimbora.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5901847536682208121/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://pranjalpratimbora.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Pranjal</name><uri>http://www.blogger.com/profile/14092337795002902509</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>2</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5901847536682208121.post-6099705575699096550</id><published>2011-05-24T22:53:00.000-07:00</published><updated>2011-05-24T23:12:06.324-07:00</updated><title type='text'>JSON parsing in iphone</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:medium;&quot;&gt;JSON (JavaScript Object Notation) is a lightweight data-interchange format&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:medium;&quot;&gt; .But how do i parse json in iphone,its fairly simple thanks to the json-framework &lt;/span&gt;&lt;/span&gt;&lt;a href=&quot;https://github.com/stig/json-framework&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:medium;&quot;&gt;http://code.google.com/p/json-framework/&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;div&gt;Steps Required &lt;/div&gt;&lt;div&gt;1.Download the library from the above link.&lt;/div&gt;&lt;div&gt;2.In your project Drag and drop the JSON folder from the downloaded folder.Check the option copy folders.&lt;/div&gt;&lt;div&gt;3.Import JSON.h to the file where you want to do the json parsing.&lt;/div&gt;&lt;div&gt;Now for the parsing its fairly simple&lt;/div&gt;&lt;div&gt;If your json Format is an object then you can parse directly&lt;/div&gt;&lt;div&gt;&lt;p  style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color:#401a7f;&quot;&gt;&lt;span style=&quot;color:#733aa7;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;NSString&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt; *jsonString = [[&lt;/span&gt;&lt;span style=&quot;color:#733aa7;&quot;&gt;NSString&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt; &lt;/span&gt;alloc&lt;span style=&quot;color:#000000;&quot;&gt;] &lt;/span&gt;initWithData&lt;span style=&quot;color:#000000;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color:#508187;&quot;&gt;data &lt;/span&gt;encoding&lt;span style=&quot;color:#000000;&quot;&gt;:&lt;/span&gt;NSUTF8StringEncoding&lt;span style=&quot;color:#000000;&quot;&gt;];&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color:#733aa7;&quot;&gt;NSDictionary&lt;/span&gt; *results = [jsonString &lt;span style=&quot;color:#32595d;&quot;&gt;JSONValue&lt;/span&gt;];&lt;/p&gt; &lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color:#733aa7;&quot;&gt;NSString&lt;/span&gt; *studentsAge=[results &lt;span style=&quot;color:#401a7f;&quot;&gt;objectForKey&lt;/span&gt;:&lt;span style=&quot;color:#d0271c;&quot;&gt;@&quot;age&quot;&lt;/span&gt;];&lt;/p&gt;&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;   style=&quot;font-family:Georgia, serif;font-size:130%;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:16px;&quot;&gt;Depending on your object you have to adjust the result variable data type and You were done.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;   style=&quot;font-family:Georgia, serif;font-size:130%;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:16px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;   style=&quot;font-family:Georgia, serif;font-size:130%;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:16px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pranjalpratimbora.blogspot.com/feeds/6099705575699096550/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://pranjalpratimbora.blogspot.com/2011/05/json-parsing-in-iphone.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5901847536682208121/posts/default/6099705575699096550'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5901847536682208121/posts/default/6099705575699096550'/><link rel='alternate' type='text/html' href='http://pranjalpratimbora.blogspot.com/2011/05/json-parsing-in-iphone.html' title='JSON parsing in iphone'/><author><name>Pranjal</name><uri>http://www.blogger.com/profile/14092337795002902509</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5901847536682208121.post-231293868003655086</id><published>2011-01-20T05:03:00.000-08:00</published><updated>2011-01-20T05:07:57.380-08:00</updated><title type='text'>Creating a color picker in mac os-x</title><content type='html'>Color picker a utility you require most often if you are a designer or a web programer.But Apple made very easy to create one with just one line of code.&lt;div&gt;This are the steps to create a color picker in mac os-x.&lt;/div&gt;&lt;div&gt;1.Open Apple script Editor.&lt;/div&gt;&lt;div&gt;2.Type &quot;Choose color&quot;&lt;/div&gt;&lt;div&gt;3. Save the file as a application. &lt;/div&gt;&lt;div&gt;And you are just done with it,this is the power of mac.Is in it the amazing thing if you are a developer&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pranjalpratimbora.blogspot.com/feeds/231293868003655086/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://pranjalpratimbora.blogspot.com/2011/01/creating-color-picker-in-mac-os-x.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5901847536682208121/posts/default/231293868003655086'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5901847536682208121/posts/default/231293868003655086'/><link rel='alternate' type='text/html' href='http://pranjalpratimbora.blogspot.com/2011/01/creating-color-picker-in-mac-os-x.html' title='Creating a color picker in mac os-x'/><author><name>Pranjal</name><uri>http://www.blogger.com/profile/14092337795002902509</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>