use json_util method in terms route > app/views.py