<s> import json <EOL> from django . http import HttpResponse <EOL> def JSONResponse ( data , status_code = <NUM_LIT:200> ) : <EOL> response = HttpResponse ( mimetype = "<STR_LIT:application/json>" , status = status_code ) <EOL> json . dump ( data , response ) <EOL> return response </s>
