Package com.alibaba.fastjson

Examples of com.alibaba.fastjson.JSONPObject.addParameter()



public class JSONPObjectTest extends TestCase {
    public void test_jsonp() throws Exception {
        JSONPObject jsonp = new JSONPObject("checkValid");
        jsonp.addParameter(new HashMap<String, Object>());
        jsonp.addParameter(new ArrayList<Object>());
       
        String text = jsonp.toString();
       
        Assert.assertEquals("checkValid({},[])", text);
View Full Code Here


public class JSONPObjectTest extends TestCase {
    public void test_jsonp() throws Exception {
        JSONPObject jsonp = new JSONPObject("checkValid");
        jsonp.addParameter(new HashMap<String, Object>());
        jsonp.addParameter(new ArrayList<Object>());
       
        String text = jsonp.toString();
       
        Assert.assertEquals("checkValid({},[])", text);
    }
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.