[Opensrf-commits] r1527 - branches/rel_1_0/src/javascript

svn at svn.open-ils.org svn at svn.open-ils.org
Mon Dec 8 19:57:38 EST 2008


Author: erickson
Date: 2008-12-08 19:57:37 -0500 (Mon, 08 Dec 2008)
New Revision: 1527

Modified:
   branches/rel_1_0/src/javascript/JSON_v1.js
Log:
add support for encoding boolean types to JSON

Modified: branches/rel_1_0/src/javascript/JSON_v1.js
===================================================================
--- branches/rel_1_0/src/javascript/JSON_v1.js	2008-12-09 00:46:52 UTC (rev 1526)
+++ branches/rel_1_0/src/javascript/JSON_v1.js	2008-12-09 00:57:37 UTC (rev 1527)
@@ -173,6 +173,9 @@
 			s = s.replace(/\f/g, "\\f");
 			return '"' + s + '"';
 
+        case 'boolean':
+            return (arg) ? 'true' : 'false';
+
 		default: return 'null';
 	}
 }



More information about the opensrf-commits mailing list