Package com.alibaba.fastjson.serializer

Examples of com.alibaba.fastjson.serializer.JSONSerializer.containsReference()


   
    public void test_ref() throws Exception {
        JSONSerializer ser = new JSONSerializer();
        Assert.assertNull(ser.getSerialContext(null));
       
        Assert.assertFalse(ser.containsReference(null));
    }
   
    public void test_array_ref() throws Exception {
        JSON.toJSONString(new A[] {new A()}, SerializerFeature.DisableCircularReferenceDetect);
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.