Skip to content

Instantly share code, notes, and snippets.

View nadersoliman's full-sized avatar

Nader Soliman nadersoliman

  • Careem Networks GmbH
  • Berlin, Germany
View GitHub Profile
@nadersoliman
nadersoliman / json2table.py
Last active August 29, 2015 14:04
Converts a JSON object to tabular dictionary for easy <table> display using AngularJS
# TODO: nsoliman 20140704 should we move these functions to the frontend instead?
def json_list_to_table(json_list):
"""
Converts a list of json string to table structure, see :func: _dict_list_to_table
:param json_list:
:return:
"""
return dict_list_to_table([json.loads(item) for item in json_list])