@app.route('/json', methods=['GET', 'POST']) def json_data(): return Company.objects.all().to_json()
c = Company.objects.from_json(company)