@Before
    public void prepareJsonString() {
        TestBean bean = new TestBean();
        bean.setName("tester");
        JSONObject data = new JSONObject();
        data.put("key", "value");
        bean.setData(data);
        jsonString = JSON.toJSONString(bean, SerializerFeature.WriteClassName);
    }
test parse json contains jsonobject in javabean
Created by yixian on 2016-02-25.
src/test/java/com/alibaba/fastjson/serializer/TestParse.java