I have a class like this
class TestDocType():
id = Integer()
title = String()
description = String()
I want to get a json object which holds the class attributes and the type of the attribute like this
{"id: {"type":"integer"},
"title":{"type","text"},
"description":{"type":"text"}
}
Aucun commentaire:
Enregistrer un commentaire