<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>KAPISH::Blog &#187; json-wordpress</title>
	<atom:link href="http://www.jayminkapish.com/tag/json-wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jayminkapish.com</link>
	<description>About Me and Wordpress</description>
	<lastBuildDate>Wed, 14 Jul 2010 18:51:12 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=3.0-alpha</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>JSON and Wordpress</title>
		<link>http://www.jayminkapish.com/2009/03/17/json-and-wordpress/</link>
		<comments>http://www.jayminkapish.com/2009/03/17/json-and-wordpress/#comments</comments>
		<pubDate>Tue, 17 Mar 2009 20:54:46 +0000</pubDate>
		<dc:creator>Jaymin Patel</dc:creator>
				<category><![CDATA[KAPISH]]></category>
		<category><![CDATA[decode-json-wordpress]]></category>
		<category><![CDATA[encode-json-wordpress]]></category>
		<category><![CDATA[json-wordpress]]></category>
		<category><![CDATA[wo]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://blog.kapish.co.in/?p=52</guid>
		<description><![CDATA[encode and decode JSON within wordpress using wordpress.]]></description>
			<content:encoded><![CDATA[<p>If you want to encode/decode JSON within/using wordpress, you can take a look at</p>
<p>/wp-includes/js/tinymce/plugins/spellchecker/classes/utils/JSON.php</p>
<p>This file has Moxiecode_JSON class which can do that for you.<br />
<span id="more-52"></span></p>
<p><strong>Sample code</strong></p>
<div class="phpcode">
<code>require_once(ABSPATH."/wp-includes/js/tinymce/plugins/spellchecker/classes/utils/JSON.php");<br />
$json_obj = new Moxiecode_JSON();<br />
/* encode */<br />
$json = $json_obj-&gt;encode(array("key1"=&gt;"value1","key2"=&gt;"value2"));<br />
//$json should have {"key1":"value1","key2":"value2"}<br />
/* decode */<br />
$json_array = $json_obj-&gt;decode($json);<br />
//$json_array will be an array("key1"=&gt;"value1","key2"=&gt;"value2")<br />
</code></div>
<h3>Related Posts</h3><ul class="related_post"><li><a href="http://www.jayminkapish.com/2009/12/08/secure-your-wordpress-installation/" title="Secure Your Wordpress Installation">Secure Your Wordpress Installation (2)</a></li><li><a href="http://www.jayminkapish.com/2009/10/08/wordpress-mu-site-upgrade-bug-your-server-may-not-be-able-to-connect-to-blogs-running-on-it/" title="Wordpress MU Site Upgrade Bug: Your server may not be able to connect to blogs running on it">Wordpress MU Site Upgrade Bug: Your server may not be able to connect to blogs running on it (3)</a></li><li><a href="http://www.jayminkapish.com/2009/08/07/parent-child-theme-easiest-way/" title="Parent Child Theme &#8211; Easiest Way!">Parent Child Theme &#8211; Easiest Way! (0)</a></li><li><a href="http://www.jayminkapish.com/2008/06/13/comments-pagination-wordpress/" title="Comments Pagination &#8211; Wordpress &#8211; Bug Fixed!">Comments Pagination &#8211; Wordpress &#8211; Bug Fixed! (19)</a></li><li><a href="http://www.jayminkapish.com/2008/04/16/google-shared-items-in-posts/" title="Google Shared Items in post using shortcode">Google Shared Items in post using shortcode (0)</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.jayminkapish.com/2009/03/17/json-and-wordpress/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

<!-- Served from: www.jayminkapish.com @ 2010-07-30 06:26:19 by W3 Total Cache -->