>
> would a 'json:reference mytable' field type similar to 'list:reference 
> mytable' or perhaps a format=lambda row: row.json() be possible? 
>

What would be the enhancement required specifically?

Do you need to PUT/POST json data into a DAL database with a service?

If you need to return the table structure, you can do something like:

table = dict()
for f in db.<tablename>:
    if isinstance(f.requires, list):
        requires = [type(r) for r in f.requires]
    else:
        requires = [type(f.requires),]
    table[f.name] = dict("default": f.default, "type": f.type, 
"requires":requires
)

If you return the table object in the controller, the generic json handler 
should serialize it automatically. Something similar could be implemented 
for validation of forms

-- 



Reply via email to