package com.alibaba.json.bvt.ref;

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

/**
 * Created by wenshao on 16/8/23.
 */
public class RefTest21 extends TestCase {
    public void test_ref() throws Exception {
        String jsonTest = "{\"properties\":{\"type\":{\"items\":{\"allOf\":[{\"$ref\":\"title\",\"required\":[\"iconImg\"]}]}}}}";
        JSONObject object = JSON.parseObject(jsonTest, Feature.DisableSpecialKeyDetect);
        System.out.println( object.get( "properties"));
    }
}

@@ -340,25 +340,22 @@
 t = %22%7B%5C%22
-propertie
+detail
 s%5C%22:%7B%5C%22t
@@ -572,17 +572,14 @@
 t( %22
-propertie
+detail
 s%22))

add testcase.