def index ( ) : global productpage table = json2html . convert ( json = json . dumps ( productpage ) , table_attributes = "class=\"table table-condensed table-bordered table-hover\"" ) return render_template ( 'index.html' , serviceTable = table )
json to a table view in python
Display productpage with normal user and test user buttons
def index():
    """ Display productpage with normal user and test user buttons"""
    global productpage

    table = json2html.convert(json = json.dumps(productpage),
                              table_attributes="class=\"table table-condensed table-bordered table-hover\"")

    return render_template('index.html', serviceTable=table)