Python Process Json String To Int Javascript Array Splice