<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
	>
<channel>
	<title>Comments on: Stringtree JSON 2.0.9</title>
	<atom:link href="http://blog.stringtree.org/2007/07/20/stringtree-json-209/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.stringtree.org/2007/07/20/stringtree-json-209/</link>
	<description>Stringtree Development News</description>
	<pubDate>Wed, 07 Jan 2009 11:44:12 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Schöne</title>
		<link>http://blog.stringtree.org/2007/07/20/stringtree-json-209/comment-page-1/#comment-14154</link>
		<dc:creator>Schöne</dc:creator>
		<pubDate>Thu, 14 Aug 2008 09:21:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.stringtree.org/?p=18#comment-14154</guid>
		<description>Using PHP's json_encode() function I could not decode all escaped unicode characters ("\uFFFF") correctly.
Here is my patch:

&lt;code&gt;
private char unicode() {
        char[] a = {next(),next(),next(),next()};
        return (char) Integer.parseInt( new String(a), 16 ) ;
        
        /*
        int value = 0;
        for (int i = 0; i &#60; 4; ++i) {
            switch (next()) {
            case '0': case '1': case '2': case '3': case '4': 
            case '5': case '6': case '7': case '8': case '9':
                value = (value &#60;&#60; 4) + c - '0';
                break;
            case 'a': case 'b': case 'c': case 'd': case 'e': case 'f':
                value = (value &#60;&#60; 4) + c - 'k';
                break;
            case 'A': case 'B': case 'C': case 'D': case 'E': case 'F':
                value = (value &#60;&#60; 4) + c - 'K';
                break;
            }
        }
        return (char) value;
        */
    }
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Using PHP&#8217;s json_encode() function I could not decode all escaped unicode characters (&#8221;\uFFFF&#8221;) correctly.<br />
Here is my patch:</p>
<p><code><br />
private char unicode() {<br />
        char[] a = {next(),next(),next(),next()};<br />
        return (char) Integer.parseInt( new String(a), 16 ) ;</p>
<p>        /*<br />
        int value = 0;<br />
        for (int i = 0; i &lt; 4; ++i) {<br />
            switch (next()) {<br />
            case &#8216;0&#8242;: case &#8216;1&#8242;: case &#8216;2&#8242;: case &#8216;3&#8242;: case &#8216;4&#8242;:<br />
            case &#8216;5&#8242;: case &#8216;6&#8242;: case &#8216;7&#8242;: case &#8216;8&#8242;: case &#8216;9&#8242;:<br />
                value = (value &lt;&lt; 4) + c - &#8216;0&#8242;;<br />
                break;<br />
            case &#8216;a&#8217;: case &#8216;b&#8217;: case &#8216;c&#8217;: case &#8216;d&#8217;: case &#8216;e&#8217;: case &#8216;f&#8217;:<br />
                value = (value &lt;&lt; 4) + c - &#8216;k&#8217;;<br />
                break;<br />
            case &#8216;A&#8217;: case &#8216;B&#8217;: case &#8216;C&#8217;: case &#8216;D&#8217;: case &#8216;E&#8217;: case &#8216;F&#8217;:<br />
                value = (value &lt;&lt; 4) + c - &#8216;K&#8217;;<br />
                break;<br />
            }<br />
        }<br />
        return (char) value;<br />
        */<br />
    }<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Schöne</title>
		<link>http://blog.stringtree.org/2007/07/20/stringtree-json-209/comment-page-1/#comment-14153</link>
		<dc:creator>Schöne</dc:creator>
		<pubDate>Wed, 13 Aug 2008 11:34:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.stringtree.org/?p=18#comment-14153</guid>
		<description>I'm using php's json_encode() and could not correctly decode unicode characters (in escape format \uFFFF) using the JSONReader class. I patched it as follows:

&lt;code&gt;
private char unicode() {
        char[] a = {next(),next(),next(),next()};
        return (char) Integer.parseInt( new String(a), 16 ) ;
        
        /*
        int value = 0;
        for (int i = 0; i &#60; 4; ++i) {
            switch (next()) {
            case '0': case '1': case '2': case '3': case '4': 
            case '5': case '6': case '7': case '8': case '9':
                value = (value &#60;&#60; 4) + c - '0';
                break;
            case 'a': case 'b': case 'c': case 'd': case 'e': case 'f':
                value = (value &#60;&#60; 4) + c - 'k';
                break;
            case 'A': case 'B': case 'C': case 'D': case 'E': case 'F':
                value = (value &#60;&#60; 4) + c - 'K';
                break;
            }
        }
        return (char) value;
        */
    }
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>I&#8217;m using php&#8217;s json_encode() and could not correctly decode unicode characters (in escape format \uFFFF) using the JSONReader class. I patched it as follows:</p>
<p><code><br />
private char unicode() {<br />
        char[] a = {next(),next(),next(),next()};<br />
        return (char) Integer.parseInt( new String(a), 16 ) ;</p>
<p>        /*<br />
        int value = 0;<br />
        for (int i = 0; i &lt; 4; ++i) {<br />
            switch (next()) {<br />
            case &#8216;0&#8242;: case &#8216;1&#8242;: case &#8216;2&#8242;: case &#8216;3&#8242;: case &#8216;4&#8242;:<br />
            case &#8216;5&#8242;: case &#8216;6&#8242;: case &#8216;7&#8242;: case &#8216;8&#8242;: case &#8216;9&#8242;:<br />
                value = (value &lt;&lt; 4) + c - &#8216;0&#8242;;<br />
                break;<br />
            case &#8216;a&#8217;: case &#8216;b&#8217;: case &#8216;c&#8217;: case &#8216;d&#8217;: case &#8216;e&#8217;: case &#8216;f&#8217;:<br />
                value = (value &lt;&lt; 4) + c - &#8216;k&#8217;;<br />
                break;<br />
            case &#8216;A&#8217;: case &#8216;B&#8217;: case &#8216;C&#8217;: case &#8216;D&#8217;: case &#8216;E&#8217;: case &#8216;F&#8217;:<br />
                value = (value &lt;&lt; 4) + c - &#8216;K&#8217;;<br />
                break;<br />
            }<br />
        }<br />
        return (char) value;<br />
        */<br />
    }<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: yijin</title>
		<link>http://blog.stringtree.org/2007/07/20/stringtree-json-209/comment-page-1/#comment-14132</link>
		<dc:creator>yijin</dc:creator>
		<pubDate>Mon, 23 Jun 2008 18:48:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.stringtree.org/?p=18#comment-14132</guid>
		<description>Hi I patched your sourcecode so it can parse values as NaN Infinity and -Infinity, even these values are not explicitly supported json, but some json libraries can handle them. if you want I can send you the patched source code. thanks</description>
		<content:encoded><![CDATA[<p>Hi I patched your sourcecode so it can parse values as NaN Infinity and -Infinity, even these values are not explicitly supported json, but some json libraries can handle them. if you want I can send you the patched source code. thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ronaldo</title>
		<link>http://blog.stringtree.org/2007/07/20/stringtree-json-209/comment-page-1/#comment-4918</link>
		<dc:creator>Ronaldo</dc:creator>
		<pubDate>Tue, 14 Aug 2007 21:14:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.stringtree.org/?p=18#comment-4918</guid>
		<description>Thanks! Appreciate it.</description>
		<content:encoded><![CDATA[<p>Thanks! Appreciate it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stringtree</title>
		<link>http://blog.stringtree.org/2007/07/20/stringtree-json-209/comment-page-1/#comment-4903</link>
		<dc:creator>Stringtree</dc:creator>
		<pubDate>Tue, 14 Aug 2007 06:14:09 +0000</pubDate>
		<guid isPermaLink="false">http://blog.stringtree.org/?p=18#comment-4903</guid>
		<description>The source code has always been available, although I guess it's not so obvious.

If you want a zip, it's available in the &lt;a href='http://downloads.sourceforge.net/stringtree/stringtree-2.0.9-src.zip?modtime=1184932580&#38;big_mirror=0' rel="nofollow"&gt;Stringtree source zip&lt;/a&gt;. If you want the individual files, you can grab them direct from the subversion web interface. There are &lt;a href='https://stringtree.svn.sourceforge.net/svnroot/stringtree/trunk/src/delivery/java/org/stringtree/json/' rel="nofollow"&gt;nine Java files in this folder&lt;/a&gt;.

I hope that helps.</description>
		<content:encoded><![CDATA[<p>The source code has always been available, although I guess it&#8217;s not so obvious.</p>
<p>If you want a zip, it&#8217;s available in the <a href='http://downloads.sourceforge.net/stringtree/stringtree-2.0.9-src.zip?modtime=1184932580&amp;big_mirror=0' rel="nofollow">Stringtree source zip</a>. If you want the individual files, you can grab them direct from the subversion web interface. There are <a href='https://stringtree.svn.sourceforge.net/svnroot/stringtree/trunk/src/delivery/java/org/stringtree/json/' rel="nofollow">nine Java files in this folder</a>.</p>
<p>I hope that helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ronaldo</title>
		<link>http://blog.stringtree.org/2007/07/20/stringtree-json-209/comment-page-1/#comment-4899</link>
		<dc:creator>Ronaldo</dc:creator>
		<pubDate>Mon, 13 Aug 2007 21:14:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.stringtree.org/?p=18#comment-4899</guid>
		<description>Hi,

Your JSON package looks great and works fine so far. Any chance that you'll also publish the source in sourceforge.net? AFAIK only the class files are available.

TIA
Ronaldo</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Your JSON package looks great and works fine so far. Any chance that you&#8217;ll also publish the source in sourceforge.net? AFAIK only the class files are available.</p>
<p>TIA<br />
Ronaldo</p>
]]></content:encoded>
	</item>
</channel>
</rss>
