If you call request.reply() with json data (answer), the response is sent with content-type = application/json. The browser may or may not display the JSON data as a string, it depends on how the browser handles content-type application/json.
To send the JSON value as a string (content-type = text/plain), I would suggest passing answer.to_string() in the response.
Thanks
Kavya.
To send the JSON value as a string (content-type = text/plain), I would suggest passing answer.to_string() in the response.
Thanks
Kavya.