Get response in text format

i create a server script when i hit the url then i get response in Json format i want get data in plain -text format

for ex-

if frappe.form_dict.message == "ping":
	frappe.response['message'] = "pong"
else:
	frappe.response['message'] = "ok"