private String parseVo(Object obj, String path)
    {
        Class clazz = null;
        StringBuffer buff = new StringBuffer();
        String rev = null;
        try
        {
            if (obj.getClass().toString().equals(Class.forName(path).toString()))
            {
                buff.append("{");
                clazz = obj.getClass();
                Method declaredMethods[] = clazz.getDeclaredMethods();
                for (int i = 0; i < declaredMethods.length; i++)
                {
                    Method method = declaredMethods[i];
                    if (method.getName().indexOf("get") == 0)
                    {
                        Method domethod = clazz.getMethod(method.getName(), new Class[0]);
                        String field = method.getName().toString().substring(3).toLowerCase();
                        String rVal = domethod.invoke(obj, new Object[0]) != null ? String.valueOf(domethod.invoke(obj,
                            new Object[0])) : "";
                        rVal = rVal.replaceAll("\\\\", "\\\\\\\\");
                        rVal = rVal.replaceAll("\"", "\\\\\"");
                        rVal = rVal.replaceAll("\n", "");
                        rVal = rVal.replaceAll("\r", "");
                        buff.append((new StringBuilder("\"")).append(field).append("\":\"").append(rVal).append("\",")
                                .toString());
                    }
                }

                rev = (new StringBuilder(String.valueOf(buff.substring(0, buff.length() - 1)))).append("}").toString();
            }
        }
        catch (Exception x)
        {
            x.printStackTrace();
        }
        return rev;
    }