dimanche 30 décembre 2018

How to get class attributes names and types in json object? [on hold]

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