package com.alibaba.json.bvt.parser.bug;

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

/**
 * Created by wenshao on 01/04/2017.
 */
public class JSONObectNullTest extends TestCase {

    public void test_for_null() throws Exception {
        Model model = JSON.parseObject("{\"value\":null}", Model.class);
    }

    public static class Model {
        public JSONObject value;
    }
}

@@ -370,16 +370,109 @@
 %0A    %7D%0A%0A
+    public void test_for_null2() throws Exception %7B%0A        JSON.parseObject(%22null%22);%0A    %7D%0A%0A
     publ

add testcase.