<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -6,7 +6,3 @@ John Mettraux (main dev)
 Jamandru Reynolds (icons)
 Juan-Pedro Paredes
 
-
-and also, thanks to
-the authors of http://www.JSON.org/json2.js
-</diff>
      <filename>CREDITS.txt</filename>
    </modified>
    <modified>
      <diff>@@ -64,12 +64,3 @@ cp public/css/fluo.css #{RUOTE_WEB}/public/stylesheets/
 
 end
 
-#task :json_minify do
-#
-#  target = File.open &quot;json2.js&quot;, &quot;w&quot;
-#
-#  File.open 'sjson2.js', &quot;r&quot; do |sourcefile|
-#    target.puts(JSMin.minify(sourcefile))
-#  end
-#end
-</diff>
      <filename>Rakefile</filename>
    </modified>
    <modified>
      <diff>@@ -19,7 +19,6 @@ get &quot;/&quot; do
   &lt;script src=&quot;/js/fluo-can.js?nocache=#{Time.now.to_f}&quot;&gt;&lt;/script&gt;
   &lt;script src=&quot;/js/fluo-dial.js?nocache=#{Time.now.to_f}&quot;&gt;&lt;/script&gt;
   &lt;script src=&quot;/js/fluo-tred.js?nocache=#{Time.now.to_f}&quot;&gt;&lt;/script&gt;
-  &lt;script src=&quot;/js/json2.js&quot;&gt;&lt;/script&gt;
 
   &lt;link href=&quot;/css/fluo-bench.css?nocache=#{Time.now.to_f}&quot; rel=&quot;Stylesheet&quot; type=&quot;text/css&quot; /&gt;
   &lt;link href=&quot;/css/fluo-dial.css?nocache=#{Time.now.to_f}&quot; rel=&quot;Stylesheet&quot; type=&quot;text/css&quot; /&gt;</diff>
      <filename>lib/ruote-fluo.rb</filename>
    </modified>
    <modified>
      <diff>@@ -160,7 +160,7 @@ var FluoCan = function() {
     var max = 0;
     if (title) max = c.mozMeasureText(title);
     for (var attname in exp[1]) {
-      var text = &quot;&quot;+attname+&quot;: &quot;+JSON.stringify(exp[1][attname]);
+      var text = &quot;&quot;+attname+&quot;: &quot;+exp[1][attname];
       var l = c.mozMeasureText(text);
       if (l &gt; max) max = l;
     }
@@ -192,7 +192,7 @@ var FluoCan = function() {
     var attname;
     var attnames = attributeNames(exp);
     while (attname = attnames.shift()) {
-      FluoCanvas.drawText(c, attname+&quot;: &quot;+JSON.stringify(exp[1][attname]), width, height);
+      FluoCanvas.drawText(c, attname+&quot;: &quot;+exp[1][attname], width, height);
       if (c.fluoVertical == false) c.translate(-20, 0);
       else c.translate(0, 20);
     }</diff>
      <filename>public/js/fluo-can.js</filename>
    </modified>
    <modified>
      <diff>@@ -112,7 +112,8 @@ var Tred = function () {
         var atts = [];
         for (key in exp[1]) { 
           var skey = key.replace(/-/, '_');
-          var sval = JSON.stringify(exp[1][key]);
+          var sval = exp[1][key];
+          if ((typeof sval) == 'string') sval = '&quot;' + sval + '&quot;';
           atts.push(&quot;&quot; + skey + ': ' + sval);
         }
         atts = atts.join(&quot;, &quot;);
@@ -191,7 +192,7 @@ var Tred = function () {
         }
 
         var atts = m[3];
-        atts = atts ? JSON.parse('({' + atts + '})') : {};
+        atts = atts ? eval('({' + atts + '})') : {};
 
         return [ expname, atts, children ];
       },
@@ -201,7 +202,7 @@ var Tred = function () {
         var name = node.childNodes[0].firstChild.nodeValue;
         var text = node.childNodes[1].firstChild.nodeValue;
         var atts = node.childNodes[2].firstChild.nodeValue;
-        atts = JSON.parse('({' + atts + '})');
+        atts = eval('({' + atts + '})');
         var children = [];
         if (text != '') children.push(text);
         return [ name, atts, children ];
@@ -214,13 +215,12 @@ var Tred = function () {
     if ((typeof node) == 'string') 
       node = document.getElementById(node);
 
-    return JSON.stringify(toTree(node));
+    return toJson(toTree(node));
   }
   
   //
   // turns a tree into a JSON string.
   //
-  /*
   function toJson (tree) {
 
     if ((typeof tree) == 'string') return '&quot;' + tree + '&quot;';
@@ -241,7 +241,6 @@ var Tred = function () {
     s += &quot;]]&quot;
     return s;
   }
-  */
 
   function onChange (tree) {
 
@@ -447,6 +446,7 @@ var Tred = function () {
     //
     // done
 
+    //expatts = eval(&quot;({&quot;+expatts+&quot;})&quot;);
     return exp;
   }
 </diff>
      <filename>public/js/fluo-tred.js</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>public/js/json2.js</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>135482c92cc10920b431713cd14d889820423e7b</id>
    </parent>
  </parents>
  <author>
    <name>John Mettraux</name>
    <email>jmettraux@gmail.com</email>
  </author>
  <url>http://github.com/jmettraux/ruote-fluo/commit/418cf3397e2490f7ca5e617c65248005b95d03ee</url>
  <id>418cf3397e2490f7ca5e617c65248005b95d03ee</id>
  <committed-date>2008-07-14T01:29:15-07:00</committed-date>
  <authored-date>2008-07-14T01:29:15-07:00</authored-date>
  <message>Revert &quot;switched to JSON lib&quot;

This reverts commit 135482c92cc10920b431713cd14d889820423e7b.

Stringify() would be cool, and I need a custom parse(). Reverting for now.</message>
  <tree>7f3bd1b3edf8e15f753236a7353bfd226e259163</tree>
  <committer>
    <name>John Mettraux</name>
    <email>jmettraux@gmail.com</email>
  </committer>
</commit>
