From c960dca068014d5bbea9674ed578a9c43a322964 Mon Sep 17 00:00:00 2001
From: SheetJS <dev@sheetjs.com>
Date: Wed, 13 Mar 2013 14:41:31 -0400
Subject: [PATCH] updated json output to reflect number headers

---
 xlsx.js | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/xlsx.js b/xlsx.js
index 3134be9..615b721 100644
--- a/xlsx.js
+++ b/xlsx.js
@@ -387,8 +387,9 @@ function sheet_to_row_object_array(sheet){
 				r: range.s.r
 			})];
 			if(val){
-				if(val.t === "s"){
-					columnHeaders[C] = val.v;
+				switch(val.t) {
+					case "s": case "str": columnHeaders[C] = val.v; break;
+					case "n": columnHeaders[C] = val.v; break;
 				}
 			}
 		}