Package com.alibaba.fastjson

Examples of com.alibaba.fastjson.JSONPObject


import com.alibaba.fastjson.JSONPObject;


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

Related Classes of com.alibaba.fastjson.JSONPObject

Copyright © 2018 www.massapicom. 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.