Skip to content

Add decorator, for returning json formatted data #36

@lowinger42

Description

@lowinger42

Simplify returning JSON formatted data

@JSON
def handlepost():
# do processing, create a dictionary
d = { "error": 0, "data": 23 }
# dictionary will be json encoded and returned using the basium_orm JSON encoder
return d

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions