// Get result of invoke method get...
Object invokeResult = method.invoke(object, new Object[0]);
if (JsonUtils.getType(invokeResult) != null)
{
jsonRootValue.addElement(key, createJsonValue(invokeResult));
}
else
{
jsonRootValue.addElement(key, createJsonObject(invokeResult));
}