package com.alibaba.json.bvt.issue_1400;

import com.alibaba.fastjson.JSON;
import junit.framework.TestCase;

public class Issue1480 extends TestCase {
    public void test_for_issue() throws Exception {
        JSON.parseObject("{35504:1,1:10,2:4,3:5,4:5,37306:98,36796:9\n" +
                "}");
    }
}

@@ -80,32 +80,189 @@
 ort 
-junit.framework.TestCase
+com.alibaba.fastjson.JSONObject;%0Aimport com.alibaba.fastjson.TypeReference;%0Aimport junit.framework.TestCase;%0Aimport org.junit.Assert;%0A%0Aimport java.util.HashMap;%0Aimport java.util.Map
 ;%0A%0Ap
@@ -354,23 +354,995 @@
 ption %7B%0A
+%0A
        
+ Map%3CInteger,Integer%3E map = new HashMap%3CInteger,Integer%3E();%0A        map.put(1,10);%0A        map.put(2,4);%0A        map.put(3,5);%0A        map.put(4,5);%0A        map.put(37306,98);%0A        map.put(36796,9);%0A%0A        String json = JSON.toJSONString(map);%0A        System.out.println(json);%0A        Assert.assertEquals(%22%7B1:10,2:4,3:5,4:5,37306:98,36796:9%7D%22,json);%0A%0A        Map%3CInteger,Integer%3E map1 = JSON.parseObject(json,new TypeReference%3CHashMap%3CInteger,Integer%3E%3E() %7B%7D);%0A%0A        Assert.assertEquals(map1.get(Integer.valueOf(1)),Integer.valueOf(10));%0A        Assert.assertEquals(map1.get(Integer.valueOf(2)),Integer.valueOf(4));%0A        Assert.assertEquals(map1.get(Integer.valueOf(3)),Integer.valueOf(5));%0A        Assert.assertEquals(map1.get(Integer.valueOf(4)),Integer.valueOf(5));%0A        Assert.assertEquals(map1.get(Integer.valueOf(37306)),Integer.valueOf(98));%0A        Assert.assertEquals(map1.get(Integer.valueOf(36796)),Integer.valueOf(9));%0A%0A        JSONObject map2 =
  JSON.pa
@@ -1399,16 +1399,23 @@
 6:9%5Cn%22 +
+ %22%7D%22);%0A
 %0A       
@@ -1419,22 +1419,479 @@
     
-        %22%7D%22
+Assert.assertEquals(map2.get(Integer.valueOf(1)),Integer.valueOf(10));%0A        Assert.assertEquals(map2.get(Integer.valueOf(2)),Integer.valueOf(4));%0A        Assert.assertEquals(map2.get(Integer.valueOf(3)),Integer.valueOf(5));%0A        Assert.assertEquals(map2.get(Integer.valueOf(4)),Integer.valueOf(5));%0A        Assert.assertEquals(map2.get(Integer.valueOf(37306)),Integer.valueOf(98));%0A        Assert.assertEquals(map2.get(Integer.valueOf(36796)),Integer.valueOf(9)
 );%0A
+%0A
     

complete test case for #1480