result = []
for property in Document.Data.Properties.GetProperties(DataPropertyClass.Document):
    propertyAsDict = {}
    propertyAsDict['name'] = property.Name
    propertyAsDict['value'] = property.Value
    result.append(propertyAsDict)
resultAsString = serializeToJSON(result)
setResultProperty(resultAsString)