Package com.alibaba.json.bvt.odps

Source Code of com.alibaba.json.bvt.odps.GetJSONObjectTest

package com.alibaba.json.bvt.odps;

import junit.framework.TestCase;

import com.alibaba.fastjson.support.odps.udf.JSONExtract;


public class GetJSONObjectTest extends TestCase {
    public void test_udf() throws Exception {
        JSONExtract udf = new JSONExtract();
        String result = udf.evaluate("{\"id\":123,\"name\":\"wenshao\"}", "$");
        System.out.println(result);
    }
}
TOP

Related Classes of com.alibaba.json.bvt.odps.GetJSONObjectTest

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.