package com.alibaba.json.bvt.issue_3200;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.serializer.SerializerFeature;
import junit.framework.TestCase;

public class Issue3283 extends TestCase {
    public void test_for_issue() throws Exception {
        VO v = new VO();
        v.v0 = 1001L;
        v.v1 = 101;

        String str = JSON.toJSONString(v, SerializerFeature.WriteNonStringValueAsString);

        JSONObject object = JSON.parseObject(str);
        assertEquals("1001", object.get("v0"));
        assertEquals("101", object.get("v1"));
    }

    public static class VO {
        public Long v0;
        public Integer v1;
    }
}

@@ -607,16 +607,279 @@
 %0A    %7D%0A%0A
+    public void test_for_issue_1() throws Exception %7B%0A        VO v = new VO();%0A        v.v0 = 19007199254740991L;%0A%0A        String str = JSON.toJSONString(v, SerializerFeature.BrowserCompatible);%0A        assertEquals(%22%7B%5C%22v0%5C%22:%5C%2219007199254740991%5C%22%7D%22, str);%0A    %7D%0A%0A
     publ

add testcase for issue #3283