FIRST POST! ... dump numbers correctly in JSON
authormiker <miker@9efc2488-bf62-4759-914b-345cdb29e865>
Fri, 4 Feb 2005 22:14:57 +0000 (22:14 +0000)
committermiker <miker@9efc2488-bf62-4759-914b-345cdb29e865>
Fri, 4 Feb 2005 22:14:57 +0000 (22:14 +0000)
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@6 9efc2488-bf62-4759-914b-345cdb29e865

src/javascript/JSON.js

index 03ec070..3cee963 100644 (file)
@@ -79,6 +79,8 @@ var i, o, u, v;
                        }
                        return 'null';
                case 'unknown':
+               case 'number':
+                       return arg;
                case 'undefined':
                case 'function':
                        return u;