new_contents: import json
  
  from flask import make_response
  
  
  def json_response(data, status=200):
      response = make_response(json.dumps(data), status)
      response.mimetype = 'application/json'
      return response
  
subject: add json_response utility